diff frontends/src/bridge/DBus.py @ 1917:05a5a125a238

bridge (frontend): raise a BridgeExceptionNoService on org.freedesktop.DBus.Error.Spawn.ExecFailed D-Bus error
author Goffi <goffi@goffi.org>
date Mon, 21 Mar 2016 19:44:16 +0100
parents b0ed4863dbc7
children 2daf7b4c6756
line wrap: on
line diff
--- a/frontends/src/bridge/DBus.py	Mon Mar 21 17:00:39 2016 +0100
+++ b/frontends/src/bridge/DBus.py	Mon Mar 21 19:44:16 2016 +0100
@@ -70,7 +70,8 @@
             self.db_plugin_iface = dbus.Interface(self.db_object,
                                                   dbus_interface=const_INT_PREFIX + const_PLUGIN_SUFFIX)
         except dbus.exceptions.DBusException, e:
-            if e._dbus_error_name == 'org.freedesktop.DBus.Error.ServiceUnknown':
+            if e._dbus_error_name in ('org.freedesktop.DBus.Error.ServiceUnknown',
+                                      'org.freedesktop.DBus.Error.Spawn.ExecFailed'):
                 raise BridgeExceptionNoService
             elif e._dbus_error_name == 'org.freedesktop.DBus.Error.NotSupported':
                 log.error(_(u"D-Bus is not launched, please see README to see instructions on how to launch it"))