2008-08-14 14:02:18 +00:00
|
|
|
#!/bin/sh
|
2008-03-14 16:43:18 +00:00
|
|
|
if [[ $0 == /* ]]; then
|
|
|
|
BASE=`dirname $0`
|
|
|
|
else
|
|
|
|
BASE=`pwd`/`dirname $0`
|
|
|
|
fi
|
2007-11-14 19:47:52 +00:00
|
|
|
OS=`uname -s`
|
|
|
|
|
|
|
|
if [ "x${OS}" == "xDarwin" ]; then
|
|
|
|
export RESOURCEPATH="${BASE}/dist/Gajim.app/Contents/Resources"
|
2007-11-16 23:11:35 +00:00
|
|
|
GTK_DIR="/Library/Frameworks/GTK+.framework/Versions/Current"
|
|
|
|
export PATH="${GTK_DIR}/bin:$PATH"
|
|
|
|
export PYTHONPATH="${GTK_DIR}/lib/python2.5/site-packages:${GTK_DIR}/lib/python2.5/site-packages/gtk-2.0:${PYTHONPATH}"
|
|
|
|
unset GTK_DIR
|
2007-11-14 19:47:52 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
cd ${BASE}/src
|
2008-08-14 14:10:44 +00:00
|
|
|
exec python -t gajim.py $@
|