1
0
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:
Dan O'Reilly
2009-04-11 18:53:30 -04:00
parent 0aaba8c439
commit 0a007d0f44
3 changed files with 9 additions and 5 deletions

View File

@@ -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: