[evolution] mail-notification: Use different icon name in the notification under Flatpak



commit c938ee2a25c93c90b7fb844d42ed97cded843109
Author: Milan Crha <mcrha redhat com>
Date:   Thu Oct 21 17:41:11 2021 +0200

    mail-notification: Use different icon name in the notification under Flatpak
    
    The Flatpak renames the 'evolution' icon to the 'org.gnome.Evolution',
    thus use that one under Flatpak, to have it available in the notification
    bubbles on the host system.

 src/plugins/mail-notification/mail-notification.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/mail-notification/mail-notification.c 
b/src/plugins/mail-notification/mail-notification.c
index a73818c55c..21b3e36827 100644
--- a/src/plugins/mail-notification/mail-notification.c
+++ b/src/plugins/mail-notification/mail-notification.c
@@ -538,7 +538,11 @@ new_notify_status (EMEventTargetFolder *t)
                        additional_messages), additional_messages);
        }
 
-       icon_name = "evolution";
+       if (e_util_is_running_flatpak ())
+               icon_name = "org.gnome.Evolution";
+       else
+               icon_name = "evolution";
+
        summary = _("New email in Evolution");
        escaped_text = g_markup_escape_text (text->str, -1);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]