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')