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.
This commit is contained in:
Milan Crha
2021-10-21 17:41:11 +02:00
parent 622fc1f131
commit c938ee2a25

View File

@ -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);