From 7da06e558a75c035ea881347e9da69ef9ee57927 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 25 Jul 2012 02:01:42 -0500 Subject: Fix kmix autostart This resolves Bug 503, and re-applies commit 2cc2e3a2 as part of the fix --- kmix/CMakeLists.txt | 1 + kmix/KMixApp.cpp | 2 ++ kmix/Makefile.am | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/kmix/CMakeLists.txt b/kmix/CMakeLists.txt index a8a419f7..237c95d4 100644 --- a/kmix/CMakeLists.txt +++ b/kmix/CMakeLists.txt @@ -26,6 +26,7 @@ link_directories( ##### other data ################################ install( FILES kmix.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +install( FILES kmix.desktop DESTINATION ${AUTOSTART_INSTALL_DIR} ) install( FILES kmixui.rc DESTINATION ${DATA_INSTALL_DIR}/kmix ) install( FILES restore_kmix_volumes.desktop DESTINATION ${AUTOSTART_INSTALL_DIR} ) install( FILES kmixapplet.desktop DESTINATION ${DATA_INSTALL_DIR}/kicker/applets ) diff --git a/kmix/KMixApp.cpp b/kmix/KMixApp.cpp index d1df895b..10e7b6ae 100644 --- a/kmix/KMixApp.cpp +++ b/kmix/KMixApp.cpp @@ -28,6 +28,8 @@ KMixApp::KMixApp() : KUniqueApplication(), m_kmix( 0 ) { + // We handle autostart via standard autostart-enabled .desktop file instead of the session manager + disableSessionManagement(); } diff --git a/kmix/Makefile.am b/kmix/Makefile.am index 50513635..d2da7028 100644 --- a/kmix/Makefile.am +++ b/kmix/Makefile.am @@ -49,7 +49,7 @@ xdg_apps_DATA = kmix.desktop rcdir = $(kde_datadir)/kmix rc_DATA = kmixui.rc -autostart_DATA = restore_kmix_volumes.desktop +autostart_DATA = kmix.desktop restore_kmix_volumes.desktop autostartdir = $(datadir)/autostart lnkdir = $(kde_datadir)/kicker/applets -- cgit v1.2.1