From 7943120b25bfb61dba43d43ef1ad2085011dca6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= Date: Sat, 13 Jan 2018 22:07:25 +0100 Subject: Use setuptools' automatic script creation --- launch.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'launch.py') diff --git a/launch.py b/launch.py index 68e4680e0..20e03a7b7 100755 --- a/launch.py +++ b/launch.py @@ -1,12 +1,4 @@ #!/usr/bin/env python3 -import os -import sys - -if sys.platform != 'win32': - 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) +from gajim import gajim +gajim.main() -- cgit v1.2.3