Commit b7ad218c authored by Piyush Aggarwal's avatar Piyush Aggarwal 🎮
Browse files

kdeconnect_daemon: conditionally configure the daemon service to better support the windows port

BUG 412665
parent 56e70904
Pipeline #40370 passed with stage
in 5 minutes and 42 seconds
......@@ -19,6 +19,13 @@ target_link_libraries(kdeconnectd
ecm_mark_nongui_executable(kdeconnectd)
configure_file(org.kde.kdeconnect.daemon.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kdeconnect.daemon.desktop)
# Conditionally configure the daemon service according to the target OS
if(WIN32)
set(SERV_EXEC kdeconnectd)
else()
set(SERV_EXEC ${KDE_INSTALL_FULL_LIBEXECDIR}/kdeconnectd)
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 ${AUTOSTART_INSTALL_DIR})
......
[D-BUS Service]
Name=org.kde.kdeconnect
Exec=@KDE_INSTALL_FULL_LIBEXECDIR@/kdeconnectd
Exec=@SERV_EXEC@
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment