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
parent47c83311d23d2982fda6b7d428d82d8f2ae1a745 (diff)
Check for root only on unix systems
-rwxr-xr-xlaunch.py5
-rw-r--r--scripts/gajim5
-rw-r--r--scripts/gajim-history-manager5
3 files changed, 9 insertions, 6 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
diff --git a/scripts/gajim b/scripts/gajim
index 4cc961899..f2af444c5 100644
--- a/scripts/gajim
+++ b/scripts/gajim
@@ -23,8 +23,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
diff --git a/scripts/gajim-history-manager b/scripts/gajim-history-manager
index 6fe987e8f..2466a70c3 100644
--- a/scripts/gajim-history-manager
+++ b/scripts/gajim-history-manager
@@ -23,8 +23,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 gi
gi.require_version('Gtk', '3.0')