diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-02-04 23:39:37 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-02-11 10:15:00 -0500 |
commit | 5d770d028a0fa29861ef07e04d66ae28cbe9c6a4 (patch) | |
tree | 679a9e2a3bf924b15c4e4343df546831820f95e3 | |
parent | 66062f53de5685eaf9ba28de6e08f236372f04b1 (diff) | |
download | sway-5d770d028a0fa29861ef07e04d66ae28cbe9c6a4.zip sway-5d770d028a0fa29861ef07e04d66ae28cbe9c6a4.tar.gz sway-5d770d028a0fa29861ef07e04d66ae28cbe9c6a4.tar.bz2 |
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`.
-rw-r--r-- | sway/commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c index dd994fa..82f4154 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] == '\'') { |