sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 87a70b35919949d79ae724760d4fcb06e4f7bc64
parent bebe7dea8cd5ee4e10a368551c595397008e2d51
Author: Brian Ashworth <bosrsf04@gmail.com>
Date:   Sun, 30 Sep 2018 10:39:29 -0400

Do not strip quotes for exec or bind commands

Leave quotes intact for cmd_exec, cmd_exec_always, cmd_bindcode,
and cmd_bindsym

Diffstat:
Msway/commands.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sway/commands.c b/sway/commands.c @@ -391,7 +391,10 @@ struct cmd_results *config_command(char *exec) { // Var replacement, for all but first argument of set // TODO commands for (i = handler->handle == cmd_set ? 2 : 1; i < argc; ++i) { - if (*argv[i] == '\"' || *argv[i] == '\'') { + if (handler->handle != cmd_exec && handler->handle != cmd_exec_always + && handler->handle != cmd_bindsym + && handler->handle != cmd_bindcode + && (*argv[i] == '\"' || *argv[i] == '\'')) { strip_quotes(argv[i]); } argv[i] = do_var_replacement(argv[i]);