mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 01:43:26 +02:00
Linux: Fix calibre failing to start on systems with no DBUS session bus
This commit is contained in:
parent
44b1f8fe93
commit
a8f697a762
1 changed files with 6 additions and 1 deletions
|
|
@ -167,7 +167,12 @@ def __call__(self, body, summary=None, replaces_id=None, timeout=0):
|
|||
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…
Reference in a new issue