diff options
author | Michele Calgaro <[email protected]> | 2024-08-15 15:12:31 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-08-16 09:58:06 +0900 |
commit | b59d51c67903335d27ada24d51be77137f664cb3 (patch) | |
tree | e90fa4cbef821ed8feefca36a53eab8e25821873 | |
parent | e5631254bf61664cebc20042caf752b6ef4f0860 (diff) | |
download | tdelibs-b59d51c67903335d27ada24d51be77137f664cb3.tar.gz tdelibs-b59d51c67903335d27ada24d51be77137f664cb3.zip |
Explicitly skip KDE xdg autostart files. This relates to issue #283
Signed-off-by: Michele Calgaro <[email protected]>
-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"))) |