[gnome-settings-daemon] housekeeping: Add desktop-entry hints to notifications
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] housekeeping: Add desktop-entry hints to notifications
- Date: Tue, 6 Nov 2018 15:48:40 +0000 (UTC)
commit 27982272cad3e10ae07dd6f8b8eaafee6208bc3c
Author: Philip Withnall <withnall endlessm com>
Date: Thu Nov 1 17:17:42 2018 +0000
housekeeping: Add desktop-entry hints to notifications
This is similar to the previous commit, but separated out because it
links the disk space notifications to Baobab, which is more disjoint as
an app — the previous commit linked other notifications to control
panel capplets, which are fairly strongly linked to the implementations
in gnome-settings-daemon.
https://wiki.gnome.org/Initiatives/GnomeGoals/NotificationSource
Signed-off-by: Philip Withnall <withnall endlessm com>
plugins/housekeeping/gsd-disk-space.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/plugins/housekeeping/gsd-disk-space.c b/plugins/housekeeping/gsd-disk-space.c
index 0eee94ea..385f2d61 100644
--- a/plugins/housekeeping/gsd-disk-space.c
+++ b/plugins/housekeeping/gsd-disk-space.c
@@ -575,6 +575,7 @@ ldsm_notify (const char *summary,
notify_notification_set_hint (notification, "transient", g_variant_new_boolean (TRUE));
notify_notification_set_urgency (notification, NOTIFY_URGENCY_CRITICAL);
notify_notification_set_timeout (notification, NOTIFY_EXPIRES_DEFAULT);
+ notify_notification_set_hint_string (notification, "desktop-entry", "org.gnome.baobab");
program = g_find_program_in_path (DISK_SPACE_ANALYZER);
has_disk_analyzer = (program != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]