When installing a KWin script from the command line, I get
$ kpackagetool6 -t KWin/Script -i ~/tmp/test
qt.dbus.integration: QDBusConnection: error: could not send signal to service "" path "/KPackage/" interface "org.kde.plasma.kpackage" member "packageInstalled": Invalid object path: /KPackage/
Successfully installed /home/user/.local/share/kwin/scripts/test/
Even though, it says Successfully installed, and appears in the list of installed scripts in System Settings/KWin Scripts,
- When I activate the script from the GUI, I get
kwin_wayland[204637]: Could not find script file for "test4"in journalctl - When I deactivate it and
- try to delete it from the GUI, I get
Error when uninstalling KWin Script: package path was deleted manually - try do delete it with the
kpackagetool6 -t KWin/Script -r test4command, I getError: Plugin is not installed.
- try to delete it from the GUI, I get
- The script does not run (no βtest5β log message in journalctl)
Any idea whatβs wrong? It used to work, and I donβt remember changing anythingβ¦
If I try installing the script using the System Settings GUI, the file picker does not find any file to install.
This is the contents of the script folder:
$ tree ~/tmp/test
/home/user/tmp/test
βββ package
βββ contents
β βββ code
β βββ main.js
βββ metadata.json
$ cat ~/tmp/test/package/metadata.json
{
"KPlugin": {
"Name": "test1",
"Description": "test2",
"Icon": "preferences-system-windows-script-test",
"Authors": [
{
"Name": "test3"
}
],
"Id": "test4",
"Version": "0.1",
"License": "GPL-2.0+"
},
"X-Plasma-API": "javascript",
"X-Plasma-MainScript": "code/main.js",
"KPackageStructure": "KWin/Script"
}
$ cat ~/tmp/test/package/contents/code/main.js
console.log("test5");