Rewrite launch script

This commit is contained in:
André Apitzsch 2017-07-16 18:23:02 +02:00
parent f7e83af297
commit 230739bbb1
2 changed files with 11 additions and 6 deletions

11
launch.py Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/python3 -OO
import os
import sys
if os.geteuid() == 0:
sys.exit("You must not launch gajim as root, it is insecure.")
import gajim.gajim as g
g.GajimApplication().run(sys.argv)

View File

@ -1,6 +0,0 @@
#!/bin/sh
if [ ! $PYTHON ]; then
PYTHON="python3";
fi
cd "$(dirname $0)/gajim"
exec $PYTHON -OOt gajim.py "$@"