summaryrefslogtreecommitdiffstats
path: root/kinit/autostart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kinit/autostart.cpp')
-rw-r--r--kinit/autostart.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/kinit/autostart.cpp b/kinit/autostart.cpp
index ccdbd3d97..3f49dfc1d 100644
--- a/kinit/autostart.cpp
+++ b/kinit/autostart.cpp
@@ -178,13 +178,23 @@ AutoStart::loadAutoStartList()
if (config.hasKey("OnlyShowIn"))
{
+#ifdef WITH_OLD_XDG_STD
if ((!config.readListEntry("OnlyShowIn", ';').contains("TDE")) && (!config.readListEntry("OnlyShowIn", ';').contains("KDE")))
continue;
+#else
+ if (!config.readListEntry("OnlyShowIn", ';').contains("TDE"))
+ continue;
+#endif
}
if (config.hasKey("NotShowIn"))
{
+#ifdef WITH_OLD_XDG_STD
if ((config.readListEntry("NotShowIn", ';').contains("TDE")) || (config.readListEntry("NotShowIn", ';').contains("KDE")))
continue;
+#else
+ if (config.readListEntry("NotShowIn", ';').contains("TDE"))
+ continue;
+#endif
}
AutoStartItem *item = new AutoStartItem;