Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

[DEV]: Remove the necessity to restart KWin to test newer version of the script #200

Open
gikari opened this issue Nov 18, 2021 · 3 comments
Labels
dev Developers only issue upstream Issue depends on the upsteam (in most cases KWin and Plasma)

Comments

@gikari
Copy link
Member

gikari commented Nov 18, 2021

Summary

KWin caches the script and, because of that, it does not load a newer version once it's installed. Either we need to:

  1. Fix this issue in the upstream
  2. Find a way to work around the issue

Additional info

No response

@gikari gikari added dev Developers only issue upstream Issue depends on the upsteam (in most cases KWin and Plasma) labels Nov 18, 2021
@ikajdan
Copy link
Contributor

ikajdan commented Nov 20, 2021

Would qdbus-qt5 org.kde.KWin /KWin reconfigure work in that case?

@gikari
Copy link
Member Author

gikari commented Nov 20, 2021

Would qdbus-qt5 org.kde.KWin /KWin reconfigure work in that case?

Our KCM unloads Bismuth and then loads all the enabled KWin scripts again, calling KWin DBus methods.
What I tried:

  1. Change the sources, so that a new random string is printed on script launch.
  2. Disable Bismuth KWin Script part from KCM.
  3. Enable it from there.

Result: no new string is printed.

  1. Same
  2. Disable Bismuth from KCM
  3. Call the "reconfigure" KWin method
  4. Enable Bismuth from KCM

Result: no new string is printed.

  1. Same
  2. Call the "reconfigure" KWin method
  3. Disable Bismuth from KCM
  4. Enable Bismuth from KCM

Result: no new string is printed.

So, the conclusion is that this approach does not work.

@gikari
Copy link
Member Author

gikari commented Nov 20, 2021

Reported an issue upsteam: https://bugs.kde.org/show_bug.cgi?id=445839

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dev Developers only issue upstream Issue depends on the upsteam (in most cases KWin and Plasma)
Projects
None yet
Development

No branches or pull requests

2 participants