Fix notifications from calibre being displayed as "Others" on the GNOME desktop

Merge branch 'gnome-notifications-fix' of https://github.com/Djaler/calibre
This commit is contained in:
Kovid Goyal 2018-10-02 09:35:17 +05:30
commit 90282f0bf1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class FDONotifier(DBUSNotifier):
timeout, body, summary = self.get_msg_parms(timeout, body, summary)
try:
self._notify.Notify('calibre', replaces_id, self.ICON, summary, body,
self.dbus.Array(signature='s'), self.dbus.Dictionary(signature='sv'),
self.dbus.Array(signature='s'), self.dbus.Dictionary({"desktop-entry": "calibre-gui"}, signature='sv'),
timeout)
except:
import traceback

View File

@ -1039,6 +1039,7 @@ TryExec=calibre
Exec=calibre --detach %F
Icon=calibre-gui
Categories=Office;
X-GNOME-UsesNotifications=true
'''