From a8f697a762713ecab0e7a48ece6944642ec0b21f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 4 Nov 2017 04:31:48 +0530 Subject: [PATCH] Linux: Fix calibre failing to start on systems with no DBUS session bus --- src/calibre/gui2/notify.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/notify.py b/src/calibre/gui2/notify.py index d44ee957ba..67efef565a 100644 --- a/src/calibre/gui2/notify.py +++ b/src/calibre/gui2/notify.py @@ -167,7 +167,12 @@ class AppleNotifier(Notifier): def get_notifier(systray=None): ans = None if islinux: - ans = get_dbus_notifier() + try: + ans = get_dbus_notifier() + except Exception: + import traceback + traceback.print_exc() + ans = None elif isosx: if get_osx_version() >= (10, 8, 0): ans = AppleNotifier()