From f5c38bbee365595635da3b6138821841863e8551 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 18 Aug 2024 20:07:41 +0900 Subject: Check KDE start condition if TDE start condition was not found. This refers to issue #283 Signed-off-by: Michele Calgaro --- tdeinit/autostart.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tdeinit') 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()) -- cgit v1.2.1