Index: agent/CMakeLists.txt =================================================================== --- agent/CMakeLists.txt (revision 1093193) +++ agent/CMakeLists.txt (revision 1093194) @@ -18,11 +18,4 @@ install(TARGETS polkit-kde-authentication-agent-1 DESTINATION ${LIBEXEC_INSTALL_DIR}) -# Install .desktop file to the XDG_CONFIG_DIRS if exists, to the /etc/xdg/autostart otherwise -set (DESKTOP_INSTALL_DIR $ENV{XDG_CONFIG_DIRS}) -if (DESKTOP_INSTALL_DIR) -else (DESKTOP_INSTALL_DIR) - set (DESKTOP_INSTALL_DIR /etc/xdg/autostart) -endif (DESKTOP_INSTALL_DIR) - -install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR}) +install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})