diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-08-15 15:12:31 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-08-17 12:24:10 +0900 |
commit | 8b5a45212267b1730a3b59a32067ec088216c725 (patch) | |
tree | 8f2dd7ad7a23ad069d6940137ec5be587995a70f /tdeinit | |
parent | 20badf14283eee0cb378ada8988e944d5a1247b8 (diff) | |
download | tdelibs-8b5a45212267b1730a3b59a32067ec088216c725.tar.gz tdelibs-8b5a45212267b1730a3b59a32067ec088216c725.zip |
Explicitly skip KDE xdg autostart files. This relates to issue #283
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit b59d51c67903335d27ada24d51be77137f664cb3)
Diffstat (limited to 'tdeinit')
-rw-r--r-- | tdeinit/autostart.cpp | 9 |
1 files 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"))) |