diff options
author | 2019-02-04 23:39:37 -0500 | |
---|---|---|
committer | 2019-02-05 09:37:31 +0100 | |
commit | 1e65cc1ea6587717160ce413904399f0431e97ba (patch) | |
tree | 679a9e2a3bf924b15c4e4343df546831820f95e3 | |
parent | swaynag: remove trailing newlines in config (diff) | |
download | sway-1e65cc1ea6587717160ce413904399f0431e97ba.tar.gz sway-1e65cc1ea6587717160ce413904399f0431e97ba.tar.zst sway-1e65cc1ea6587717160ce413904399f0431e97ba.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`.
-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] == '\'') { |