root/nicotine-app/trunk/nicotine/data/script @ 33

Revision 33, 0.8 KB (checked in by vasi, 4 years ago)

new module

  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3cd "`dirname \"$0\"`"
4
5# Work around file limit
6ulimit -n 512
7
8### Work around open-x11's problem with whitespace
9display="/tmp/$USER-display-nicotine"
10getter="/tmp/$USER-getdisplay-$$"
11rm -f "$display"
12cp sw/bin/getdisplay.sh "$getter"
13open-x11 "$getter"
14deadline=$((`date +%s` + 60))
15until [ -f "$display" -a -r "$display" ]; do
16        if [ `date +%s` -ge "$deadline" ]; then
17                echo "Could not get display!"
18                exit 1
19        fi
20        sleep 1
21done
22export DISPLAY=`cat "$display"`
23rm -f "$display" "$getter"
24
25# Use our libs
26DYLD_LIBRARY_PATH=sw/lib \
27 PANGO_RC_FILE=./sw/etc/pangorc \
28 PYTHONPATH=sw/lib/python2.3/site-packages \
29 GDK_PIXBUF_MODULE_FILE=./sw/etc/gdk-pixbuf.loaders \
30 GTK_PATH="./sw/lib/gtk-2.0:./sw/lib/gtk-2.0/2.4.0" \
31 GTK2_RC_FILES=./sw/etc/gtkrc-2.0 \
32 /usr/bin/python2.3 sw/bin/nicotine
Note: See TracBrowser for help on using the browser.