summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-08-18 20:07:41 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-08-18 23:22:46 +0900
commitcc8ddafac3d96f84e8ca047f83d94420e5928735 (patch)
tree20c7e050f37c73ffbfeb2ac686594d74d2d1261b
parent3ccc8ad970ccf6e4c5e2abef212af44e17eb0fca (diff)
downloadtdelibs-cc8ddafac3d96f84e8ca047f83d94420e5928735.tar.gz
tdelibs-cc8ddafac3d96f84e8ca047f83d94420e5928735.zip
Check KDE start condition if TDE start condition was not found. This refers to issue #283
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit f5c38bbee365595635da3b6138821841863e8551)
-rw-r--r--tdeinit/autostart.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tdeinit/autostart.cpp b/tdeinit/autostart.cpp
index 79e71c7f6..abc3c2ef3 100644
--- a/tdeinit/autostart.cpp
+++ b/tdeinit/autostart.cpp
@@ -130,8 +130,8 @@ AutoStart::loadAutoStartList()
if (!startCondition(config.readEntry("X-TDE-autostart-condition")))
continue;
}
- else {
- if (!startCondition(config.readEntry("X-TDE-autostart-condition")))
+ else if (config.hasKey("X-KDE-autostart-condition")) {
+ if (!startCondition(config.readEntry("X-KDE-autostart-condition")))
continue;
}
if (!config.tryExec())