Explicitly skip KDE xdg autostart files. This relates to issue #283

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit b59d51c679)
pull/312/head
Michele Calgaro 3 months ago
parent 20badf1428
commit 8b5a452122
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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")))

Loading…
Cancel
Save