# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1614562272 0 # Node ID 58700e9fcba34ea61ef6b0e9c53f41cd2fb698ad # Parent 47f8f950f3779a550dda3bb12a1f16a698018332 GTK3/4: Add call to g_set_prgname() with the Application ID. This fixes apps showing as "GTK Application" instead of the name in the desktop file on Wayland. diff -r 47f8f950f377 -r 58700e9fcba3 gtk3/dw.c --- a/gtk3/dw.c Sun Feb 28 13:42:25 2021 +0000 +++ b/gtk3/dw.c Mon Mar 01 01:31:12 2021 +0000 @@ -2111,6 +2111,7 @@ g_signal_connect(G_OBJECT(action), "activate", G_CALLBACK(_dw_notification_handler), NULL); g_action_map_add_action(G_ACTION_MAP(_DWApp), G_ACTION(action)); #endif + g_set_prgname(_dw_app_id); g_signal_connect(_DWApp, "activate", G_CALLBACK(_dw_app_activate), NULL); g_application_activate(_DWApp); } diff -r 47f8f950f377 -r 58700e9fcba3 gtk4/dw.c --- a/gtk4/dw.c Sun Feb 28 13:42:25 2021 +0000 +++ b/gtk4/dw.c Mon Mar 01 01:31:12 2021 +0000 @@ -1421,7 +1421,8 @@ { /* Creat our notification handler for any notifications */ GSimpleAction *action = g_simple_action_new("notification", G_VARIANT_TYPE_UINT64); - + + g_set_prgname(_dw_app_id); g_signal_connect(G_OBJECT(action), "activate", G_CALLBACK(_dw_notification_handler), NULL); g_action_map_add_action(G_ACTION_MAP(_DWApp), G_ACTION(action)); g_signal_connect(_DWApp, "activate", G_CALLBACK(_dw_app_activate), NULL);