From b11b7a4a95b7aed50abaf4e7e63d76492babc06a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= Date: Mon, 17 Jul 2017 21:36:17 +0200 Subject: [PATCH] Check for root only on unix systems --- launch.py | 5 +++-- scripts/gajim | 5 +++-- scripts/gajim-history-manager | 5 +++-- 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')