From 961850557fb42c203215146e01ee32bdf535056c Mon Sep 17 00:00:00 2001 From: provokateurin Date: Tue, 29 Oct 2024 07:58:46 +0100 Subject: [PATCH] fix(example): Fix window icon on wayland Signed-off-by: provokateurin --- packages/neon_framework/example/linux/my_application.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/neon_framework/example/linux/my_application.cc b/packages/neon_framework/example/linux/my_application.cc index 936d14e954e..701a5d23699 100644 --- a/packages/neon_framework/example/linux/my_application.cc +++ b/packages/neon_framework/example/linux/my_application.cc @@ -104,6 +104,12 @@ static void my_application_class_init(MyApplicationClass* klass) { static void my_application_init(MyApplication* self) {} MyApplication* my_application_new() { + // Set the program name to the application ID, which helps various systems + // like GTK and desktop environments map this running application to its + // corresponding .desktop file. This ensures better integration by allowing + // the application to be recognized beyond its binary name. + g_set_prgname(APPLICATION_ID); + return MY_APPLICATION(g_object_new(my_application_get_type(), "application-id", APPLICATION_ID, "flags", G_APPLICATION_NON_UNIQUE,