Rewrite launch script
This commit is contained in:
parent
f7e83af297
commit
230739bbb1
2 changed files with 11 additions and 6 deletions
11
launch.py
Executable file
11
launch.py
Executable 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)
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
if [ ! $PYTHON ]; then
|
|
||||||
PYTHON="python3";
|
|
||||||
fi
|
|
||||||
cd "$(dirname $0)/gajim"
|
|
||||||
exec $PYTHON -OOt gajim.py "$@"
|
|
Loading…
Add table
Reference in a new issue