diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-02-04 23:39:37 -0500 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-02-05 09:37:31 +0100 |
commit | 1e65cc1ea6587717160ce413904399f0431e97ba (patch) | |
tree | 679a9e2a3bf924b15c4e4343df546831820f95e3 /sway | |
parent | 665381d30546b2a397190cdae5fd7125b3d442f8 (diff) | |
download | sway-1e65cc1ea6587717160ce413904399f0431e97ba.tar.xz |
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, //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] == '\'') { |