1. Launch "System Settings" and navigate to Session => Desktop Session 2. Navigate to a different KCM (e.g. Locations) and then back to Desktop Session OBSERVED RESULT KCM is not initialised with the current settings EXPECTED RESULT KCM shows current settings as it did when first displaying it in step 1
Can reproduce.
*** Bug 488523 has been marked as a duplicate of this bug. ***
*** Bug 490918 has been marked as a duplicate of this bug. ***
*** Bug 498250 has been marked as a duplicate of this bug. ***
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2736
Git commit 5d04608fefeaebeeed590bf1e3576428a141adac by David Edmundson. Committed on 22/01/2025 at 15:30. Pushed by davidedmundson into branch 'master'. kcms/ksmserver: Fix settings object lifetime management Registering a QML singleton with an object with a small lifespan than the engine is wrong. This will assert (or at best be broken) when the KCM is opened, closed and reopened. This is in line with other KCMs. Related: bug 487028 M +6 -3 kcms/ksmserver/kcmsmserver.cpp M +6 -1 kcms/ksmserver/kcmsmserver.h M +15 -16 kcms/ksmserver/ui/main.qml https://invent.kde.org/plasma/plasma-desktop/-/commit/5d04608fefeaebeeed590bf1e3576428a141adac
Git commit 163248cf719ef3d91afa7723c4bb59a9251c36f0 by Fushan Wen, on behalf of David Edmundson. Committed on 24/01/2025 at 09:07. Pushed by fusionfuture into branch 'Plasma/6.3'. kcms/ksmserver: Fix settings object lifetime management Registering a QML singleton with an object with a small lifespan than the engine is wrong. This will assert (or at best be broken) when the KCM is opened, closed and reopened. This is in line with other KCMs. Related: bug 487028 (cherry picked from commit 5d04608fefeaebeeed590bf1e3576428a141adac) Co-authored-by: David Edmundson <kde@davidedmundson.co.uk> M +6 -3 kcms/ksmserver/kcmsmserver.cpp M +6 -1 kcms/ksmserver/kcmsmserver.h M +15 -16 kcms/ksmserver/ui/main.qml https://invent.kde.org/plasma/plasma-desktop/-/commit/163248cf719ef3d91afa7723c4bb59a9251c36f0