[d-feet] Don't fail if no systembus or sessionbus is available
- From: Thomas Bechtold <toabctl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [d-feet] Don't fail if no systembus or sessionbus is available
- Date: Mon, 20 May 2013 07:13:41 +0000 (UTC)
commit f92d2220612519fd84e72f0ca6ece0f2c2f121e4
Author: Thomas Bechtold <thomasbechtold jpberlin de>
Date: Mon May 20 09:12:32 2013 +0200
Don't fail if no systembus or sessionbus is available
https://bugzilla.gnome.org/show_bug.cgi?id=696876
src/dfeet/window.py | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/src/dfeet/window.py b/src/dfeet/window.py
index ae00148..b170ff7 100644
--- a/src/dfeet/window.py
+++ b/src/dfeet/window.py
@@ -112,13 +112,19 @@ class DFeetWindow(Gtk.ApplicationWindow):
def __systembus_connect_cb(self, action):
"""connect to system bus"""
- bw = BusWatch(self.data_dir, Gio.BusType.SYSTEM)
- self.__notebook_append_page(bw.paned_buswatch, "System Bus")
+ try:
+ bw = BusWatch(self.data_dir, Gio.BusType.SYSTEM)
+ self.__notebook_append_page(bw.paned_buswatch, "System Bus")
+ except Exception as e:
+ print(e)
def __sessionbus_connect_cb(self, action):
"""connect to session bus"""
- bw = BusWatch(self.data_dir, Gio.BusType.SESSION)
- self.__notebook_append_page(bw.paned_buswatch, "Session Bus")
+ try:
+ bw = BusWatch(self.data_dir, Gio.BusType.SESSION)
+ self.__notebook_append_page(bw.paned_buswatch, "Session Bus")
+ except Exception as e:
+ print(e)
def __otherbus_connect_cb(self, action):
"""connect to other bus"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]