[Notifications] Set notification desktop entry hint

Due to Gnome Guidelines https://wiki.gnome.org/Initiatives/GnomeGoals/NotificationSource
This commit is contained in:
Kirill Romanov 2018-09-28 00:14:06 +03:00 committed by Calum Lind
parent 9e29fe4111
commit ba6af99b05
1 changed files with 1 additions and 0 deletions

View File

@ -182,6 +182,7 @@ class GtkUiNotifications(CustomNotifications):
)
self.note = pynotify.Notification(title, message)
self.note.set_icon_from_pixbuf(icon)
self.note.set_hint('desktop-entry', 'deluge')
if not self.note.show():
err_msg = _('pynotify failed to show notification')
log.warning(err_msg)