diff options
author | André Apitzsch <git@apitzsch.eu> | 2017-07-17 22:36:17 +0300 |
---|---|---|
committer | André Apitzsch <git@apitzsch.eu> | 2017-08-18 20:48:48 +0300 |
commit | b11b7a4a95b7aed50abaf4e7e63d76492babc06a (patch) | |
tree | 8c029b7a09ae93e207781bbacafc78e7a835e650 /launch.py | |
parent | 47c83311d23d2982fda6b7d428d82d8f2ae1a745 (diff) |
Check for root only on unix systems
Diffstat (limited to 'launch.py')
-rwxr-xr-x | launch.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |