From dc5d219ad248d44e98e51627afcda13ee145e587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= Date: Wed, 24 Jul 2024 14:28:10 +0000 Subject: [PATCH] app: Set prgname and icon for the window While the window icon is commonly used by desktop environments on Xorg, using the application ID for prgname ensures that Wayland compositors could match the window with the application and show the appropriate icon for them. --- src/gr-app.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gr-app.c b/src/gr-app.c index 140e3598..992b03d3 100644 --- a/src/gr-app.c +++ b/src/gr-app.c @@ -380,6 +380,9 @@ gr_app_startup (GApplication *application) { G_APPLICATION_CLASS (gr_app_parent_class)->startup (application); + g_set_prgname ("org.gnome.Recipes"); + gtk_window_set_default_icon_name ("org.gnome.Recipes"); + setup_actions_and_accels (application); load_application_menu (application); load_application_css (application); -- GitLab