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