gfdonotificationbackend: set app_name if available

Fixes: #2069
This commit is contained in:
André Apitzsch 2021-06-15 20:45:06 +02:00
parent 00feb4d5a9
commit 53632c84d8

View File

@ -257,6 +257,7 @@ call_notify (GDBusConnection *con,
GVariantBuilder hints_builder;
GIcon *icon;
GVariant *parameters;
const gchar *app_name;
const gchar *body;
guchar urgency;
@ -322,10 +323,11 @@ call_notify (GDBusConnection *con,
}
}
app_name = g_get_application_name ();
body = g_notification_get_body (notification);
parameters = g_variant_new ("(susssasa{sv}i)",
"", /* app name */
app_name ? app_name : "",
replace_id,
"", /* app icon */
g_notification_get_title (notification),