From f00e04c07d64641e811ba663bd9fa9c51c7b27aa Mon Sep 17 00:00:00 2001 From: Volker Krause Date: Thu, 12 Sep 2024 20:46:35 +0200 Subject: [PATCH] Don't set an absolute D-Bus service path on Windows and macOS --- daemon/CMakeLists.txt | 3 +++ daemon/org.kde.kdeconnect.service.in | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/daemon/CMakeLists.txt b/daemon/CMakeLists.txt index 5d486073f..ad1439657 100644 --- a/daemon/CMakeLists.txt +++ b/daemon/CMakeLists.txt @@ -20,6 +20,9 @@ ecm_mark_nongui_executable(kdeconnectd) configure_file(org.kde.kdeconnect.daemon.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kdeconnect.daemon.desktop) +if (UNIX AND NOT APPLE) + set(kdeconnectd_prefix "${KDE_INSTALL_FULL_BINDIR}/") +endif() configure_file(org.kde.kdeconnect.service.in ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kdeconnect.service) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kdeconnect.daemon.desktop DESTINATION ${KDE_INSTALL_AUTOSTARTDIR}) diff --git a/daemon/org.kde.kdeconnect.service.in b/daemon/org.kde.kdeconnect.service.in index 4c972e4d6..cb3f5ddbe 100644 --- a/daemon/org.kde.kdeconnect.service.in +++ b/daemon/org.kde.kdeconnect.service.in @@ -1,3 +1,3 @@ [D-BUS Service] Name=org.kde.kdeconnect -Exec==@KDE_INSTALL_FULL_BINDIR@/kdeconnectd +Exec=@kdeconnectd_prefix@kdeconnectd