mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Linux: Fix calibre failing to start on systems with no DBUS session bus
This commit is contained in:
parent
44b1f8fe93
commit
a8f697a762
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user