Bug 483573

Summary: Global shortcuts from a KWin script are still there after it's is uninstalled
Product: [Applications] systemsettings Reporter: coherence <niuchangcun>
Component: kcm_keysAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: dmatteo002, kde, nate, niuchangcun
Priority: NOR Keywords: qt6
Version First Reported In: 6.0.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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.