Check for root only on unix systems
This commit is contained in:
parent
47c83311d2
commit
b11b7a4a95
|
@ -3,8 +3,9 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if os.geteuid() == 0:
|
if sys.platform != 'win32':
|
||||||
sys.exit("You must not launch gajim as root, it is insecure.")
|
if os.geteuid() == 0:
|
||||||
|
sys.exit("You must not launch gajim as root, it is insecure.")
|
||||||
|
|
||||||
import gajim.gajim as g
|
import gajim.gajim as g
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,9 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if os.geteuid() == 0:
|
if sys.platform != 'win32':
|
||||||
sys.exit("You must not launch gajim as root, it is insecure.")
|
if os.geteuid() == 0:
|
||||||
|
sys.exit("You must not launch gajim as root, it is insecure.")
|
||||||
|
|
||||||
import gajim.gajim as g
|
import gajim.gajim as g
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,9 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if os.geteuid() == 0:
|
if sys.platform != 'win32':
|
||||||
sys.exit("You must not launch gajim as root, it is insecure.")
|
if os.geteuid() == 0:
|
||||||
|
sys.exit("You must not launch gajim as root, it is insecure.")
|
||||||
|
|
||||||
import gi
|
import gi
|
||||||
gi.require_version('Gtk', '3.0')
|
gi.require_version('Gtk', '3.0')
|
||||||
|
|
Loading…
Reference in New Issue