def cleanup_backend(self, widget=None, data=None):
'''cleans up the backend process'''
try:
if self._dbus_iface is not None:
self.backend().request_exit()
except dbus.DBusException as msg:
if hasattr(msg, '_dbus_error_name') and msg.get_dbus_name() == \
'org.freedesktop.DBus.Error.ServiceUnknown':
pass
else:
print("%s when closing DBus service from %s (data: %s)" %
(str(msg), widget, data))
评论列表
文章目录