Linux: Fix calibre failing to start on systems with no DBUS session bus

This commit is contained in:
Kovid Goyal 2017-11-04 04:31:48 +05:30
parent 44b1f8fe93
commit a8f697a762
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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()