Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlaunch.sh17
-rw-r--r--scripts/gajim-remote.in3
-rw-r--r--scripts/gajim.in3
3 files changed, 5 insertions, 18 deletions
diff --git a/launch.sh b/launch.sh
index d526d23cd..f61870f69 100755
--- a/launch.sh
+++ b/launch.sh
@@ -1,18 +1,3 @@
#!/bin/sh
-if [[ $0 == /* ]]; then
- BASE=`dirname $0`
-else
- BASE=`pwd`/`dirname $0`
-fi
-OS=`uname -s`
-
-if [ "x${OS}" == "xDarwin" ]; then
- export RESOURCEPATH="${BASE}/dist/Gajim.app/Contents/Resources"
- 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
-fi
-
-cd ${BASE}/src
+cd "$(dirname $0)/src"
exec python -t gajim.py $@
diff --git a/scripts/gajim-remote.in b/scripts/gajim-remote.in
index f107fe428..8d771a1c6 100644
--- a/scripts/gajim-remote.in
+++ b/scripts/gajim-remote.in
@@ -24,8 +24,9 @@
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
-if [ `id -u` -eq 0 ]; then
+if test $(id -u) -eq 0; then
echo "You must not launch gajim-remote as root, it is INSECURE"
+ exit 1
fi
datadir=@DATADIR@
diff --git a/scripts/gajim.in b/scripts/gajim.in
index 29e726373..a627ce637 100644
--- a/scripts/gajim.in
+++ b/scripts/gajim.in
@@ -23,8 +23,9 @@
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
-if [ `id -u` -eq 0 ]; then
+if test $(id -u) -eq 0; then
echo "You must not launch Gajim as root, it is INSECURE"
+ exit 1
fi
datadir=@DATADIR@