aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorRyan Dwyer <RyanDwyer@users.noreply.github.com>2018-10-02 08:14:01 +1000
committerGitHub <noreply@github.com>2018-10-02 08:14:01 +1000
commit82559c16c701aa912b341ecbbd116c2992c5e698 (patch)
tree6b9f56b3700dda60efdaff4446fc684009490b5b /sway
parent742d1764a6fb1fb9269dc9ffe08319da98f4d7b8 (diff)
parent9956a1a9ab7141da813e8db63adb7b800958400b (diff)
Merge branch 'master' into fix-2653
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]);