File autostart-in-kde3-too.diff of Package PolicyKit-kde
Subject: Make policykit-kde start in both kde4 and kde3
From: Lubos Lunak
Bug: bnc#445104
Patch-upstream: no
KDE3 reads only /opt/kde3/share/autostart and
$XDG_CONFIG_DIRS/autostart (=/etc/xdg/autostart), but not /usr/share/autostart.
KDE4 reads $XDG_CONFIG_DIRS/autostart too, so put it there.
--- CMakeLists.txt.sav 2008-10-30 09:41:54.000000000 +0100
+++ CMakeLists.txt 2008-11-14 18:57:24.000000000 +0100
@@ -9,5 +9,6 @@ pkg_check_modules (POLKITGRANT polkit-gr
MESSAGE(STATUS " ${POLKIT_INCLUDE_DIRS} ===========")
if (POLKIT_FOUND AND POLKITGRANT_FOUND)
add_subdirectory(src)
- install( FILES policykit-kde.desktop DESTINATION ${AUTOSTART_INSTALL_DIR} )
+# install( FILES policykit-kde.desktop DESTINATION ${AUTOSTART_INSTALL_DIR} )
+ install( FILES policykit-kde.desktop DESTINATION "/etc/xdg/autostart")
endif (POLKIT_FOUND AND POLKITGRANT_FOUND)