kscreen-doctor hangs when called from a global shortcut
At the moment I don't have ways to dive into what's going on, but here's the issue: if I programmatically turn on/off a monitor with kscreen-doctor from a global KDE shortcut, the process just hangs. The same exact invocation on the command line succeeds.
Steps to reproduce:
- Go in the settings, and create a keyboard shortcut to enable/disable your monitor. In my case,
kscreen-doctor output.DP-3.enable/disable
- Execute the shortcut
- Notice that nothing happens and that the kscreen-doctor process hangs and needs to be killed
- Execute the same command in a shell, and notice that it executes successfully
Is the environment shortcuts are run in that causes issues with kscreen-doctor?
Running Fedora Kinoite, libkscreen 5.27.6