aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-10-01 20:18:54 +0200
committerGitHub <noreply@github.com>2018-10-01 20:18:54 +0200
commit9956a1a9ab7141da813e8db63adb7b800958400b (patch)
tree6f63a35e96bbf17a00a4edc0ccf63476ce1d131a /sway
parent51f68e10ad8bd42925dda24d06a6f6fccf3e6a39 (diff)
parenta125575eb5ddea8d60228350676e61b87add116f (diff)
Merge pull request #2735 from RedSoxFan/fix-quotes
Do not strip quotes for exec or bind commands
Diffstat (limited to 'sway')
-rw-r--r--sway/commands.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 03761c52..03cfebd7 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -391,7 +391,11 @@ 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
+ && handler->handle != cmd_set
+ && (*argv[i] == '\"' || *argv[i] == '\'')) {
strip_quotes(argv[i]);
}
argv[i] = do_var_replacement(argv[i]);