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:
authorAndré Apitzsch <git@apitzsch.eu>2017-07-16 19:23:02 +0300
committerAndré Apitzsch <git@apitzsch.eu>2017-08-18 20:48:48 +0300
commit230739bbb1350c3787388bd10cbf038ca81c2405 (patch)
tree4ec48661464f973c343dc7480503536eab4d31ed /launch.py
parentf7e83af297b629031c26f6d3beafe2064bf4fdf3 (diff)
Rewrite launch script
Diffstat (limited to 'launch.py')
-rwxr-xr-xlaunch.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/launch.py b/launch.py
new file mode 100755
index 000000000..726445f0e
--- /dev/null
+++ b/launch.py
@@ -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)