summaryrefslogtreecommitdiffstats
path: root/tdeinit
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-08-15 15:12:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-08-16 09:58:06 +0900
commitb59d51c67903335d27ada24d51be77137f664cb3 (patch)
treee90fa4cbef821ed8feefca36a53eab8e25821873 /tdeinit
parente5631254bf61664cebc20042caf752b6ef4f0860 (diff)
downloadtdelibs-b59d51c67903335d27ada24d51be77137f664cb3.tar.gz
tdelibs-b59d51c67903335d27ada24d51be77137f664cb3.zip
Explicitly skip KDE xdg autostart files. This relates to issue #283
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeinit')
-rw-r--r--tdeinit/autostart.cpp9
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")))