Skip to content

Commit

Permalink
Merge pull request #2606 from nextcloud/fix/example/linux-wayland-icon
Browse files Browse the repository at this point in the history
  • Loading branch information
provokateurin authored Oct 29, 2024
2 parents 7cffea0 + 420e3cf commit 393bd3b
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 393bd3b

Please sign in to comment.