File proper_autostart_location.diff of Package polkit-kde-1

------------------------------------------------------------------------
r1093194 | dafre | 2010-02-20 11:19:55 +0000 (Sat, 20 Feb 2010) | 3 lines
Changed paths:
   M /trunk/extragear/base/polkit-kde-1/agent/CMakeLists.txt

Don't install in /etc but use the autostart dir instead

Signed-off-by: Dario Freddi <drf@kde.org>
------------------------------------------------------------------------
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})
openSUSE Build Service is sponsored by