idle_detect.patch (1710B)
1 diff --git a/CMakeLists.txt b/CMakeLists.txt 2 index 1e80fcde21..69afc91c08 100644 3 --- a/CMakeLists.txt 4 +++ b/CMakeLists.txt 5 @@ -225,7 +225,7 @@ 6 target_link_libraries(read_shmem_timestamps PRIVATE rt) 7 8 # Installation paths (parameterized) 9 -set(INSTALL_BIN_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}" CACHE PATH "Installation directory for binaries") 10 +set(INSTALL_BIN_DIR "${CMAKE_INSTALL_BINDIR}" CACHE PATH "Installation directory for binaries") 11 12 if(EXISTS "${SYSCONF_INSTALL_DIR}") 13 set(INSTALL_CONFIG_DIR "${SYSCONF_INSTALL_DIR}" CACHE PATH "Installation directory for configuration files") 14 @@ -239,7 +239,7 @@ 15 # Force the single config file into /etc rather than ${PREFIX}/etc — the 16 # service files reference this path and relocating it complicates the 17 # template logic for no real gain. 18 - set(INSTALL_CONFIG_DIR "/${CMAKE_INSTALL_SYSCONFDIR}" CACHE PATH "Installation directory for configuration files") 19 + set(INSTALL_CONFIG_DIR "${CMAKE_INSTALL_SYSCONFDIR}" CACHE PATH "Installation directory for configuration files") 20 endif() 21 22 set(INSTALL_SYSTEM_SERVICE_DIR "${CMAKE_INSTALL_PREFIX}/lib/systemd/system" CACHE PATH "Installation directory for the system level dc_event_detection service") 23 @@ -280,7 +280,7 @@ 24 ) 25 26 # Define the standard XDG autostart directory 27 -set(INSTALL_XDG_AUTOSTART_DIR "/etc/xdg/autostart" CACHE PATH "System-wide XDG autostart directory") 28 +set(INSTALL_XDG_AUTOSTART_DIR "${CMAKE_INSTALL_SYSCONFDIR}/xdg/autostart" CACHE PATH "System-wide XDG autostart directory") 29 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/idle-detect-autostart.desktop DESTINATION ${INSTALL_XDG_AUTOSTART_DIR}) 30 31 # Install default user service auto enable preset file