From ba6af99b05ca3ca169b94872ef8389c73c530c9f Mon Sep 17 00:00:00 2001 From: Kirill Romanov Date: Fri, 28 Sep 2018 00:14:06 +0300 Subject: [PATCH] [Notifications] Set notification desktop entry hint Due to Gnome Guidelines https://wiki.gnome.org/Initiatives/GnomeGoals/NotificationSource --- .../plugins/Notifications/deluge/plugins/notifications/gtkui.py | 1 + 1 file changed, 1 insertion(+) diff --git a/deluge/plugins/Notifications/deluge/plugins/notifications/gtkui.py b/deluge/plugins/Notifications/deluge/plugins/notifications/gtkui.py index fba795de6..f61649dbe 100644 --- a/deluge/plugins/Notifications/deluge/plugins/notifications/gtkui.py +++ b/deluge/plugins/Notifications/deluge/plugins/notifications/gtkui.py @@ -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)