I loaded a simple script (has only two files: metadata.json and main.qml) using this:
kpackagetool6 -t KWin/Script --install dir
Since I was testing, I modified the script, deleted it in the Settings/Kwin Scripts, and re-installed it using the same command. The problem was that, for some reason, it maintained the old script. I verified that the script was deleted from .local/share/kwin/scripts/
, but somehow, when re-installed it, it had the old one. It looks as if KWin cached it somewhere.
I tried the kpackagetool6 --upgrade
parameter, but it was the same.
The only way that worked was restarting kwin with kwin_wayland --replace
but this kills all the running applications.
How can I apply the changes to the script without restarting win?