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-17 22:36:17 +0300
committerAndré Apitzsch <git@apitzsch.eu>2017-08-18 20:48:48 +0300
commitb11b7a4a95b7aed50abaf4e7e63d76492babc06a (patch)
tree8c029b7a09ae93e207781bbacafc78e7a835e650 /launch.py
parent47c83311d23d2982fda6b7d428d82d8f2ae1a745 (diff)
Check for root only on unix systems
Diffstat (limited to 'launch.py')
-rwxr-xr-xlaunch.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/launch.py b/launch.py
index 726445f0e..d7a031d93 100755
--- a/launch.py
+++ b/launch.py
@@ -3,8 +3,9 @@
import os
import sys
-if os.geteuid() == 0:
- sys.exit("You must not launch gajim as root, it is insecure.")
+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