Skip to content

Commit

Permalink
notification: Use fdo notifictions for applications without IDs.
Browse files Browse the repository at this point in the history
The GTK notifcation system (i.e. GNOME Shell) doesn't support notifcations without an ID and silently ignores them.
In this case, use the fdo notification system so these show.
  • Loading branch information
robert-ancell committed Aug 8, 2022
1 parent ca24c36 commit 47ff04a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/notification.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ handle_add_notification (XdpImplNotification *object,
GVariant *arg_notification)
{
if (gtk_notifications == NULL ||
g_str_equal (arg_app_id, "") ||
g_dbus_proxy_get_name_owner (G_DBUS_PROXY (gtk_notifications)) == NULL ||
has_unprefixed_action (arg_notification))
handle_add_notification_fdo (object, invocation, arg_app_id, arg_id, arg_notification);
Expand Down

0 comments on commit 47ff04a

Please sign in to comment.