Bug 430815

Summary: Custom shortcuts do not handle file paths with spaces
Product: [Applications] systemsettings Reporter: Tore Havn <veqz>
Component: kcm_khotkeysAssignee: Michael Jansen <kde>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.20.3   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Tore Havn 2020-12-25 23:03:27 UTC
The CommandURL actions for custom shortcuts do not handle file paths with spaces.

The file chooser works well and a script with spaces in the filename can be stored for the shortcut.

Unfortunately, the path is not stored in a way that can handle spaces in the file path.

The following are excerpts from the ~/.config/khotkeysrc:

This works:
[Data_4Actions0]
CommandURL=/home/username/this_is_a_script
Type=COMMAND_URL

This does not work:
[Data_4Actions0]
CommandURL=/home/username/this is a script
Type=COMMAND_URL
Comment 1 Nate Graham 2024-03-04 19:42:07 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.