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

git pushed a commit to branch master
in repository enlightenment.

View the commit online.

commit cdad1845472c71f986e4f30b8917ddd6979f7ec0
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Sat Jun 18 09:28:04 2022 +0100

    notification module - handle misnamed desktop files e.g. firefox
---
 src/modules/notification/e_mod_popup.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/modules/notification/e_mod_popup.c b/src/modules/notification/e_mod_popup.c
index 6cf2ccc54..3bf02e49c 100644
--- a/src/modules/notification/e_mod_popup.c
+++ b/src/modules/notification/e_mod_popup.c
@@ -613,6 +613,17 @@ _notification_popup_refresh(Popup_Data *popup)
 
         snprintf(buf, sizeof(buf), "%s.desktop", popup->notif->desktop_entry);
         desktop = efreet_util_desktop_file_id_find(buf);
+        if (!desktop)
+          { // some apps name their desktops with capitals - err... Firefox
+             char *buf2 = strdup(buf);
+
+             if (buf2)
+               {
+                  eina_str_tolower(&buf2);
+                  desktop = efreet_util_desktop_file_id_find(buf2);
+                  free(buf2);
+               }
+          }
         if ((desktop) && (desktop->icon))
           {
              size = e_util_icon_size_normalize(width * e_scale);

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

Reply via email to