From cdad1845472c71f986e4f30b8917ddd6979f7ec0 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sat, 18 Jun 2022 09:28:04 +0100 Subject: [PATCH] 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);