fix(linux): set app id properly

This commit is contained in:
guihkx 2024-01-02 21:02:11 -03:00
parent b2ba6d9261
commit bf3c8a5418
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

View File

@ -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)

View File

@ -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));
}