Don't set an absolute D-Bus service path on Windows and macOS

(cherry picked from commit f00e04c07d)
This commit is contained in:
Volker Krause 2024-09-12 20:46:35 +02:00 committed by Sam James
parent 7274c62c7c
commit a7045bfe0d
No known key found for this signature in database
GPG key ID: 738409F520DF9190
2 changed files with 4 additions and 1 deletions

View file

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

View file

@ -1,3 +1,3 @@
[D-BUS Service]
Name=org.kde.kdeconnect
Exec==@KDE_INSTALL_FULL_BINDIR@/kdeconnectd
Exec=@kdeconnectd_prefix@kdeconnectd