mirror of
https://github.com/gryf/wicd.git
synced 2025-12-22 22:27:59 +01:00
Only check for wireless tools in the ioctl backend if wpactrl isn't available.
Fix up error handling when there is no graphical sudo program installed.
This commit is contained in:
@@ -57,7 +57,9 @@ def setup_dbus(force=True):
|
||||
except DBusException:
|
||||
if force:
|
||||
print "Can't connect to the daemon, trying to start it automatically..."
|
||||
misc.PromptToStartDaemon()
|
||||
if not misc.PromptToStartDaemon():
|
||||
print "Failed to find a graphical sudo program, cannot continue."
|
||||
return False
|
||||
try:
|
||||
dbusmanager.connect_to_dbus()
|
||||
except DBusException:
|
||||
|
||||
Reference in New Issue
Block a user