diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-02-04 23:39:37 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-02-04 23:39:37 -0500 |
| commit | fc9e987dd6c8e2d65bdd7ec2b129a7a54e36fbec (patch) | |
| tree | 679a9e2a3bf924b15c4e4343df546831820f95e3 | |
| parent | 7e2403462d27be853d71a205f1a164d9d70905e1 (diff) | |
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 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] == '\'') { |
