The desktop file will be installed to /usr/share/applications. All destkop files in the applications directory are displayed in user menus but abrt-applet is not intended to be started by users. Therefore NoDisplay entry is used to prevent prevent displaying applet in the menus.
Related to rhbz#994009
Signed-off-by: Jakub Filak jfilak@redhat.com --- src/applet/abrt-applet.desktop.in | 2 ++ src/applet/applet.c | 1 + 2 files changed, 3 insertions(+)
diff --git a/src/applet/abrt-applet.desktop.in b/src/applet/abrt-applet.desktop.in index 842d4e9..762368f 100644 --- a/src/applet/abrt-applet.desktop.in +++ b/src/applet/abrt-applet.desktop.in @@ -5,4 +5,6 @@ Icon=abrt Exec=abrt-applet Terminal=false Type=Application +NoDisplay=true X-GNOME-Autostart-enabled=true +X-GNOME-UsesNotifications=true diff --git a/src/applet/applet.c b/src/applet/applet.c index 615f6cc..91c8256 100644 --- a/src/applet/applet.c +++ b/src/applet/applet.c @@ -662,6 +662,7 @@ static NotifyNotification *new_warn_notification(bool persistence) notify_notification_set_urgency(notification, NOTIFY_URGENCY_NORMAL); notify_notification_set_timeout(notification, persistence ? NOTIFY_EXPIRES_NEVER : NOTIFY_EXPIRES_DEFAULT); + notify_notification_set_hint(notification, "desktop-entry", g_variant_new_string("abrt-applet"));
return notification; }