mirror of
https://github.com/gryf/wicd.git
synced 2025-12-19 20:38:00 +01:00
Handle wicd-daemon not running when client starts, thanks to David Cantrell
This commit is contained in:
11
gtk/gui.py
11
gtk/gui.py
@@ -145,6 +145,17 @@ class appGui(object):
|
||||
""" Initializes everything needed for the GUI. """
|
||||
setup_dbus()
|
||||
|
||||
if not daemon:
|
||||
errmsg = "Error connecting to wicd service via D-Bus." + \
|
||||
"Please ensure the wicd service is running."
|
||||
d = gtk.MessageDialog(parent=None,
|
||||
flags=gtk.DIALOG_MODAL,
|
||||
type=gtk.MESSAGE_ERROR,
|
||||
buttons=gtk.BUTTONS_OK,
|
||||
message_format=errmsg)
|
||||
d.run()
|
||||
sys.exit(1)
|
||||
|
||||
self.tray = tray
|
||||
|
||||
gladefile = os.path.join(wpath.gtk, "wicd.ui")
|
||||
|
||||
Reference in New Issue
Block a user