From 5d770d028a0fa29861ef07e04d66ae28cbe9c6a4 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Mon, 4 Feb 2019 23:39:37 -0500 Subject: execute_command: dont strip quotes for exec_always This removes quote stripping for `exec_always` in `execute_command`. Since `exec_always` commands will be deferred in the config and processed by `execute_command`, the quotes need to be left intact like they are for `exec`. --- sway/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/commands.c b/sway/commands.c index dd994fa1..82f41545 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -254,7 +254,7 @@ list_t *execute_command(char *_exec, struct sway_seat *seat, //TODO better handling of argv int argc; char **argv = split_args(cmd, &argc); - if (strcmp(argv[0], "exec") != 0) { + if (!strcmp(argv[0], "exec") && !strcmp(argv[0], "exec_always")) { int i; for (i = 1; i < argc; ++i) { if (*argv[i] == '\"' || *argv[i] == '\'') { -- cgit v1.2.3-54-g00ecf