KDE Keyboard Shortcuts — script works in terminal but not as "Command"
I have a Python script (#!/usr/bin/env python3) in ~/.local/bin/ that sends a signal via os.kill(pid, signal.SIGUSR1).
- From terminal: mimo toggle works fine
- From System Settings → Keyboard Shortcuts → "Command" with absolute path /home/user/.local/bin/mimo toggle → nothing happens
- Already tried: absolute path (no ~), #!/usr/bin/python3 shebang, and a stripped-down version that logs to /tmp/mimo_toggle.log — log file never gets created, script doesn't seem to run at all
What environment does KDE use to run these commands? Different PATH? Some sandboxing/restriction? Do I need a bash -c wrapper?
Running KDE Plasma 6 on Wayland, Debian 13.
Thanks.