Bug 483573 - Global shortcuts from a KWin script are still there after it's is uninstalled
Summary: Global shortcuts from a KWin script are still there after it's is uninstalled
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keys (other bugs)
Version First Reported In: 6.0.2
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-14 16:05 UTC by coherence
Modified: 2025-06-17 09:18 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description coherence 2024-03-14 16:05:04 UTC
SUMMARY
global shortcuts are still there when a kwin script is uninstalled

STEPS TO REPRODUCE
1.  create a kwin script, in which a global shortcut is registered by `registerShortcut` method
2.  install the script using `kpackagetool6 --type KWin/Script --install .`
2.  the global shortcut works correctly
3.  uninstall the script

OBSERVED RESULT
the registered global shortcut still works

EXPECTED RESULT
It should not work.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0 
Qt Version: 6.6.2

ADDITIONAL INFORMATION
And when I install a script again which binds the same shortcut, the shortcut seems to call to the old (uninstalled) script, not the new one.