2006-08-30 09:44:33 +02:00
|
|
|
#!/bin/bash
|
2008-03-14 17:43:18 +01:00
|
|
|
if [[ $0 == /* ]]; then
|
|
|
|
BASE=`dirname $0`
|
|
|
|
else
|
|
|
|
BASE=`pwd`/`dirname $0`
|
|
|
|
fi
|
2007-11-14 20:47:52 +01:00
|
|
|
OS=`uname -s`
|
|
|
|
|
|
|
|
if [ "x${OS}" == "xDarwin" ]; then
|
|
|
|
export RESOURCEPATH="${BASE}/dist/Gajim.app/Contents/Resources"
|
2007-11-17 00:11:35 +01: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 20:47:52 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
cd ${BASE}/src
|
2008-05-19 22:03:22 +02:00
|
|
|
exec -a gajim python -t gajim.py $@
|