From 8b5a45212267b1730a3b59a32067ec088216c725 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 15 Aug 2024 15:12:31 +0900 Subject: Explicitly skip KDE xdg autostart files. This relates to issue #283 Signed-off-by: Michele Calgaro (cherry picked from commit b59d51c67903335d27ada24d51be77137f664cb3) --- tdeinit/autostart.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tdeinit/autostart.cpp b/tdeinit/autostart.cpp index 7682c5c4a..79e71c7f6 100644 --- a/tdeinit/autostart.cpp +++ b/tdeinit/autostart.cpp @@ -118,10 +118,13 @@ AutoStart::loadAutoStartList() TQStringList kdefiles = TDEGlobal::dirs()->findAllResources("autostart", "*.desktop", false, true); files += kdefiles; - for(TQStringList::ConstIterator it = files.begin(); - it != files.end(); - ++it) + for(TQStringList::ConstIterator it = files.begin(); it != files.end(); ++it) { + // Explicitly skip autostart files from KDE + if ((*it).contains("org.kde") || (*it).startsWith("/etc/kde/xdg/autostart")) + { + continue; + } KDesktopFile config(*it, true); if (config.hasKey("X-TDE-autostart-condition")) { if (!startCondition(config.readEntry("X-TDE-autostart-condition"))) -- cgit v1.2.1