Skip to content
Commit fc0a1d9f authored by Bharadwaj Raju's avatar Bharadwaj Raju
Browse files

kcms/keys: Make Add Command work with percent characters in commands

Right now KIO DesktopExecParser returns nothing if it gets a command with a
percent in it other than valid desktop-file placeholders like %F etc. Escaping
doesn't seem to help.

So, we don't just return if it can't find an executableName.

Also, we escape the percents by replacing them with %% so that the command
works when it does end up getting into a .desktop file.

Suggested command for testing: `qdbus org.kde.klipper /klipper setClipboardContents $(date +"%Y-%m-%d")`. Thanks to https://old.reddit.com/r/kde/comments/12if4ed/custom_shortcuts_using_qdbus_still_supported/ for highlighting this issue.
parent b9116a5e
Pipeline #383417 passed with stage
in 6 minutes and 19 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment