[Xfce4-commits] [apps/xfce4-notifyd] 06/06: Handle remembering notifications which send desktop_id and empty app_name

noreply at xfce.org noreply at xfce.org
Mon Oct 3 23:34:24 CEST 2016


This is an automated email from the git hooks/post-receive script.

ochosi pushed a commit to branch master
in repository apps/xfce4-notifyd.

commit bb19f22e029eadf05fdd7626605a5b698f8782eb
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Mon Oct 3 23:20:07 2016 +0200

    Handle remembering notifications which send desktop_id and empty app_name
---
 xfce4-notifyd/xfce-notify-daemon.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/xfce4-notifyd/xfce-notify-daemon.c b/xfce4-notifyd/xfce-notify-daemon.c
index 08100ca..7f11e58 100644
--- a/xfce4-notifyd/xfce-notify-daemon.c
+++ b/xfce4-notifyd/xfce-notify-daemon.c
@@ -1142,9 +1142,6 @@ notify_notify (XfceNotifyGBus *skeleton,
 
     g_variant_iter_init (&iter, hints);
 
-    new_app_name = g_strdup (app_name);
-    notify_update_known_applications (xndaemon->settings, new_app_name);
-
     while ((item = g_variant_iter_next_value (&iter)))
     {
         const char *key;
@@ -1196,6 +1193,13 @@ notify_notify (XfceNotifyGBus *skeleton,
         g_variant_unref (item);
     }
 
+    if (desktop_id)
+        new_app_name = g_strdup (desktop_id);
+    else
+        new_app_name = g_strdup (app_name);
+
+    notify_update_known_applications (xndaemon->settings, new_app_name);
+
     if(expire_timeout == -1)
         expire_timeout = xndaemon->expire_timeout;
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list