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

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/294/head
Michele Calgaro 3 months ago
parent e5631254bf
commit b59d51c679
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -118,10 +118,13 @@ AutoStart::loadAutoStartList()
TQStringList kdefiles = TDEGlobal::dirs()->findAllResources("autostart", "*.desktop", false, true); TQStringList kdefiles = TDEGlobal::dirs()->findAllResources("autostart", "*.desktop", false, true);
files += kdefiles; files += kdefiles;
for(TQStringList::ConstIterator it = files.begin(); for(TQStringList::ConstIterator it = files.begin(); it != files.end(); ++it)
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); KDesktopFile config(*it, true);
if (config.hasKey("X-TDE-autostart-condition")) { if (config.hasKey("X-TDE-autostart-condition")) {
if (!startCondition(config.readEntry("X-TDE-autostart-condition"))) if (!startCondition(config.readEntry("X-TDE-autostart-condition")))

Loading…
Cancel
Save