Closed Ferdi265 closed 2 months ago
Should be fixed by https://github.com/davatorium/rofi/commit/04f16052a98414b20bf83677cfef3b306d6659f6 and https://github.com/davatorium/rofi/commit/1063b6ec05238341180de4aa704f9e59ab6c9da0 so another merge from upstream might be necessary.
I can confirm that these upstream commits fix the issue when applied on top of the latest release.
Ok I've updated the wayland branch, it should be fixed now.
Rofi version (rofi -v or git commit in case of build issue)
1.7.5+wayland3-2
Configuration
(shown for completeness, config is
/dev/null
) https://gist.github.com/Ferdi265/632b99b10f16440b3cdf43f8282b58cbTheme
(shown for completeness, config is
/dev/null
) https://gist.github.com/Ferdi265/632b99b10f16440b3cdf43f8282b58cbTiming report
No response
Launch command
rofi -config /dev/null -show run
Step to reproduce
powerprofilesctl set performance
(note that the 'set', 'performance' arguments are extra arguments not part of the suggested commands)powerprofilesctl set performance
again (note that it now finds this command in the history)Expected behavior
Running a command from history should behave the exact same was as running a command the first time.
Actual behavior
Rofi applies quoting to the command from history, resulting in rofi trying to find a command named
'powerprofilesctl set performance'
(including quotes), which fails.Additional information
The following patch fixes the immediate problem by avoiding shell quoting of the command arguments:
This patch works, and I've been using it on my system for weeks now, but I haven't worked on it a lot and there might be a better solution.
I'd be happy to work out a solution to this in more detail if required and can open a PR for this.
Note that this issue is specific to this fork, appeared rather recently, and doesn't occur with upstream rofi releases.
Using wayland display server protocol
I've checked if the issue exists in the latest stable release