Skip to content

Commit

Permalink
fix(example): Fix window icon on wayland
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed Oct 29, 2024
1 parent 7cffea0 commit 420e3cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .cspell/tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ openrelayprojectsecret
petstore
plantuml
precache
prgname
puml
realpath
rpath
Expand Down
6 changes: 6 additions & 0 deletions packages/neon_framework/example/linux/my_application.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 420e3cf

Please sign in to comment.