How to properly reload a kwin script

I had trouble with it too.

What I found so far is to do 2 DBUS calls:

  1. call org.kde.kwin.Scripting.unloadScript name_of_your_script

  2. Update/reinstall the extensions

  3. call org.kde.kwin.Scripting.start

KWin reconfigure had no effect for me, but “start” reloaded the new new extension nicely.

You can see an example here: https://github.com/ragusa87/kde-tilling-on-drag/blob/main/Makefile

2 Likes