Bug 385747

Summary: shortcut doesn't execute command verbatim but executes it in some file associated context
Product: [Applications] systemsettings Reporter: johanna_mueller_57
Component: kcm_khotkeysAssignee: Michael Jansen <kde>
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.20.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description johanna_mueller_57 2017-10-14 16:04:57 UTC
I created a shortcut "Meta+T" to execute "konsole" in the shortcuts->own shortcuts settings. This worked as expected, until I changed the file associations for text/plain files in Dolphin to be executed by "konsole -e vim U%". Now "Meta+T" opens konsole with vim running, instead of normal "konsole" (which I still get with Alt+Space and "konsole" or running "konsole" from an already open terminal). 

If I remove the according .local/share/applications/konsole.desktop file, Meta+T does "konsole" again.

From my understanding, the "command to run" field in the shortcuts -> new shortcut dialog should just do "konsole", if i put "konsole" there. At least it should to the same as KRunner. Is my understanding wrong or is this indeed a bug?
Comment 1 Nate Graham 2024-03-04 19:42:06 UTC
As announced in https://pointieststick.com/2023/07/26/what-we-plan-to-remove-in-plasma-6/ and https://community.kde.org/Plasma/Plasma_6#Removals, I'm afraid KHotKeys has reached end-of-life in Plasma 6. Accordingly, all bug reports and feature requests for it must be closed now.

Most of what KHotKeys could do can already be done with the newer KGlobalAccel system in Plasma 6. A few features such as mouse gestures and triggering conditions based on changes to window states are not yet implemented in the new system. These will be added in the future if and when resources materialize for them, and/or when a kind soul submits patches to implement them! :) Meanwhile, the 3rd-party "Mouse Actions" app (https://github.com/jersou/mouse-actions) may be usable for implementing your own mouse gestures again.

Thanks for your understanding, everyone.