Blob Blame History Raw
diff -up wicd-1.7.3/cli/wicd-cli.py.orig wicd-1.7.3/cli/wicd-cli.py
--- wicd-1.7.3/cli/wicd-cli.py.orig	2014-12-21 14:40:46.000000000 -0500
+++ wicd-1.7.3/cli/wicd-cli.py	2015-04-09 10:25:48.171078635 -0400
@@ -61,6 +61,10 @@ if not daemon:
         'Please make sure the wicd service is running.'
     sys.exit(3)
 
+if daemon is None:
+	print 'Error connecting to wicd via D-Bus.  Please make sure the wicd service is running.'
+	sys.exit(3)
+
 parser = optparse.OptionParser()
 
 parser.add_option('--network', '-n', type='int', default=-1)
diff -up wicd-1.7.3/curses/wicd-curses.py.orig wicd-1.7.3/curses/wicd-curses.py
--- wicd-1.7.3/curses/wicd-curses.py.orig	2014-12-21 14:40:46.000000000 -0500
+++ wicd-1.7.3/curses/wicd-curses.py	2015-04-09 10:25:48.184078719 -0400
@@ -1277,6 +1277,10 @@ def setup_dbus(force=True):
             'Please make sure the wicd service is running.'
         sys.exit(3)
 
+    if daemon is None:
+        print 'Error connecting to wicd via D-Bus.  Please make sure the wicd service is running.'
+        sys.exit(3)
+
     netentry_curses.dbus_init(dbus_ifaces)
     return True
 
diff -up wicd-1.7.3/gtk/gui.py.orig wicd-1.7.3/gtk/gui.py
--- wicd-1.7.3/gtk/gui.py.orig	2014-12-21 14:40:46.000000000 -0500
+++ wicd-1.7.3/gtk/gui.py	2015-04-09 10:25:48.184078719 -0400
@@ -183,6 +183,17 @@ class appGui(object):
             d.run()
             sys.exit(1)
 
+        if daemon is None:
+            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")