From d13ff938447727747adad6e0e9f06a115920bc12 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 10 May 2024 04:31:01 +0300 Subject: [PATCH] plasma: remove client session configs once session is restored Signed-off-by: Ivailo Monev --- plasma/shells/plasma-desktop/plasmaapp.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plasma/shells/plasma-desktop/plasmaapp.cpp b/plasma/shells/plasma-desktop/plasmaapp.cpp index 50798b35..f2961e6d 100644 --- a/plasma/shells/plasma-desktop/plasmaapp.cpp +++ b/plasma/shells/plasma-desktop/plasmaapp.cpp @@ -1009,6 +1009,12 @@ void PlasmaApp::restoreClients() } sessiongroup.deleteGroup(); sessiongroup.sync(); + + const QStringList sessionconfigs = KGlobal::dirs()->findAllResources("config", "session/*"); + foreach (const QString &sessionconfig, sessionconfigs) { + kDebug() << "removing client session config" << sessionconfig; + QFile::remove(sessionconfig); + } } void PlasmaApp::registerClient(const QString &client)