commit 1e65cc1ea6587717160ce413904399f0431e97ba
parent 665381d30546b2a397190cdae5fd7125b3d442f8
Author: Brian Ashworth <bosrsf04@gmail.com>
Date: Mon, 4 Feb 2019 23:39:37 -0500
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:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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] == '\'') {