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 /sway | |
parent | swaynag: remove trailing newlines in config (diff) | |
download | sway-5d770d028a0fa29861ef07e04d66ae28cbe9c6a4.tar.gz sway-5d770d028a0fa29861ef07e04d66ae28cbe9c6a4.tar.zst sway-5d770d028a0fa29861ef07e04d66ae28cbe9c6a4.zip |
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`.
Diffstat (limited to 'sway')
-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, | |||
254 | //TODO better handling of argv | 254 | //TODO better handling of argv |
255 | int argc; | 255 | int argc; |
256 | char **argv = split_args(cmd, &argc); | 256 | char **argv = split_args(cmd, &argc); |
257 | if (strcmp(argv[0], "exec") != 0) { | 257 | if (!strcmp(argv[0], "exec") && !strcmp(argv[0], "exec_always")) { |
258 | int i; | 258 | int i; |
259 | for (i = 1; i < argc; ++i) { | 259 | for (i = 1; i < argc; ++i) { |
260 | if (*argv[i] == '\"' || *argv[i] == '\'') { | 260 | if (*argv[i] == '\"' || *argv[i] == '\'') { |