[plasma/plasma-workspace] shell/scripting: scripting: Drop windowmanager from defaultApplication

Nicolas Fella <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit e364ac2cf729dfe3cf8faade9d072fb6e68fcbac by Nicolas Fella.
Committed on 10/08/2026 at 14:27.
Pushed by nicolasfella into branch 'master'.

scripting: Drop windowmanager from defaultApplication

Changing the window manager is not something that's possible

M  +0    -5    shell/scripting/scriptengine_v1.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/e364ac2cf729dfe3cf8faade9d072fb6e68fcbac

diff --git a/shell/scripting/scriptengine_v1.cpp b/shell/scripting/scriptengine_v1.cpp
index 4ddbc9f1dd..55a97100ab 100644
--- a/shell/scripting/scriptengine_v1.cpp
+++ b/shell/scripting/scriptengine_v1.cpp
@@ -655,11 +655,6 @@ QJSValue ScriptEngine::V1::defaultApplication(const QString &application, bool s
             return storageId ? service->storageId() : onlyExec(service->exec());
         }
 
-    } else if (matches(application, QLatin1String("windowmanager"))) {
-        KConfig cfg(QStringLiteral("ksmserverrc"), KConfig::NoGlobals);
-        KConfigGroup confGroup(&cfg, u"General"_s);
-        return onlyExec(confGroup.readEntry("windowManager", QStringLiteral("kwin")));
-
     } else if (KService::Ptr service = KApplicationTrader::preferredService(application)) {
         return storageId ? service->storageId() : onlyExec(service->exec());
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.