[evolution/gnome-41] mail-notification: Use different icon name in the notification under Flatpak
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-41] mail-notification: Use different icon name in the notification under Flatpak
- Date: Thu, 21 Oct 2021 15:43:50 +0000 (UTC)
commit e7bd3988aeff3ad40b0ca2e0ef408f97219592ac
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]