mirror of
https://github.com/gryf/wicd.git
synced 2026-02-03 14:55:50 +01:00
Made calls to Autoconnect outside the daemon asynchronous.
Removed some unnecessary print statements. Added checks to the daemon and configscript.py to make sure the user opening it is root. Fixed formatting problems in class definitions in wicd.py
This commit is contained in:
@@ -27,10 +27,10 @@ run as the current user.
|
||||
#
|
||||
|
||||
import sys
|
||||
import os
|
||||
import gtk
|
||||
import ConfigParser
|
||||
import dbus
|
||||
import dbus.service
|
||||
import gtk.glade
|
||||
|
||||
import wpath
|
||||
@@ -184,4 +184,7 @@ def main (argv):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if os.getuid() != 0:
|
||||
print "Root priviledges are required to configure scripts. Exiting."
|
||||
sys.exit(0)
|
||||
main(sys.argv)
|
||||
|
||||
Reference in New Issue
Block a user