Bug 430815 - Custom shortcuts do not handle file paths with spaces
Summary: Custom shortcuts do not handle file paths with spaces
Status: RESOLVED UNMAINTAINED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_khotkeys (show other bugs)
Version: 5.20.3
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Jansen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-25 23:03 UTC by Tore Havn
Modified: 2024-03-04 19:42 UTC (History)
1 user (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 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.