-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some bindsym exec commands do not work as expected #518
Comments
Before passing a command to a command handler the quotes are stripped from each argument in the command. This is usually the wanted behavior but causes a problem in the case of `exec` where quoted arguments can be required when passing the exec command to `/bin/sh -c`. This patch makes `exec` a special case and doesn't strip quotes from the arguments. It will just pass the exec command verbatim to the exec command handler. Fix swaywm#518
Commit 99f26c6 breaks the following config:
This works in i3, but doesn't in sway. I'm missing why |
This has been discussed a bit here: #521 Basically in any sane implementation anything wrapped in |
To clarify: this is a place where I am willing to break backwards compatability in exchange for saner behaviour. The correct command is:
|
Hello.
I was trying to specify colors for dmenu in bindsym and:
bindsym $mod+a exec dmenu_run -b -i -nb "#FDF6E3" -nf "#657B83" -sb "#EEE8D5" -sf "#CB4B16"
bindsym $mod+d exec dmenu_run -b -i -nb '#FDF6E3' -nf '#657B83' -sb '#EEE8D5' -sf '#CB4B16'
bindsym $mod+g exec dmenu_run -b -i -nb "'#FDF6E3'" -nf "'#657B83'" -sb "'#EEE8D5'" -sf "'#CB4B16'"
Note the following work from a terminal:
dmenu_run -b -i -nb #FDF6E3 -nf #657B83 -sb #EEE8D5 -sf #CB4B16
dmenu_run -b -i -nb '#FDF6E3' -nf '#657B83' -sb '#EEE8D5' -sf '#CB4B16'
dmenu_run -b -i -nb "#FDF6E3" -nf "#657B83" -sb "#EEE8D5" -sf "#CB4B16"
sway -d -V
output http://pastebin.com/raw/5F1hrunsThanks.
The text was updated successfully, but these errors were encountered: