[BUG] Stop quoting entries in history when running them #1961
Labels
bug
Incomplete Report - Please follow the guidelines
Your report is incomplete and does not follow the guidelines, you may not expect an answer
Rofi version (rofi -v)
afc65ac
Configuration
n/a
Theme
n/a
Timing report
No response
Launch command
rofi -show run
Step to reproduce
code /path/to/project
(it's in history so gets autocompleted)"code /path/to/project"
which is a non-existent commandExpected behavior
I expect the entry to be run unquoted, respecting the arguments passed.
Actual behavior
Quotes the full history entry before running it, result in it trying to run a command that includes the arguments.
Additional information
I saw that this was intentional, so maybe the solution here would be to make the command handling smarter by only quoting the entry if the quoted entry is an actual command in PATH, and if not retain the old behavior (idk if this is feasible, was just an idea).
Note: Another related bug is that, if the command with spaces is not in the history (so no
code /path/to/project
in history), then the command doesn't get quoted and runs. This seems like an inconsistency that should probably be fixed too.Using wayland display server protocol
I've checked if the issue exists in the latest stable release
The text was updated successfully, but these errors were encountered: