Skip to content

Commit

Permalink
Icon fix on Wayland for some linux distro
Browse files Browse the repository at this point in the history
  • Loading branch information
ferraridamiano committed Sep 15, 2024
1 parent 278acf4 commit 11d3497
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.10)
project(runner LANGUAGES CXX)

set(BINARY_NAME "converternow")
set(APPLICATION_ID "com.ferrarid.converternow")
set(APPLICATION_ID "io.github.ferraridamiano.ConverterNOW")

cmake_policy(SET CMP0063 NEW)

Expand Down
6 changes: 6 additions & 0 deletions 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 11d3497

Please sign in to comment.