From bf3c8a54184082e6eff5ef59f92d8f93da4fa8e6 Mon Sep 17 00:00:00 2001 From: guihkx <626206+guihkx@users.noreply.github.com> Date: Tue, 2 Jan 2024 21:02:11 -0300 Subject: [PATCH] fix(linux): set app id properly --- linux/CMakeLists.txt | 6 +++++- linux/my_application.cc | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt index 8f1007742..bcb22ae20 100644 --- a/linux/CMakeLists.txt +++ b/linux/CMakeLists.txt @@ -2,7 +2,11 @@ cmake_minimum_required(VERSION 3.10) project(runner LANGUAGES CXX) set(BINARY_NAME "spotube") -set(APPLICATION_ID "oss.krtirtho.spotube") +if(UNIX AND NOT APPLE) + set(APPLICATION_ID "com.github.KRTirtho.Spotube") +else() + set(APPLICATION_ID "oss.krtirtho.spotube") +endif() cmake_policy(SET CMP0063 NEW) diff --git a/linux/my_application.cc b/linux/my_application.cc index d1ac5d124..7e00eb710 100644 --- a/linux/my_application.cc +++ b/linux/my_application.cc @@ -105,7 +105,7 @@ static void my_application_init(MyApplication* self) {} MyApplication* my_application_new() { return MY_APPLICATION(g_object_new(my_application_get_type(), - "com.github.KRTirtho.Spotube", APPLICATION_ID, + "application-id", APPLICATION_ID, "flags", G_APPLICATION_HANDLES_COMMAND_LINE | G_APPLICATION_HANDLES_OPEN, nullptr)); }