From 9637c16684028c960fb7c8d1486b9b49adee2636 Mon Sep 17 00:00:00 2001 From: Kristen McWilliam <9575627+Merrit@users.noreply.github.com> Date: Wed, 16 Oct 2024 16:35:58 -0400 Subject: [PATCH] fix(linux): generic icon on Wayland sessions This change sets 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. --- auth/linux/my_application.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/auth/linux/my_application.cc b/auth/linux/my_application.cc index ea77d7929a..d47ed2a5db 100644 --- a/auth/linux/my_application.cc +++ b/auth/linux/my_application.cc @@ -160,6 +160,12 @@ 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_HANDLES_COMMAND_LINE | G_APPLICATION_HANDLES_OPEN,