diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt index 8f100774..bcb22ae2 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 d1ac5d12..7e00eb71 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)); }