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`.
This commit is contained in:
Brian Ashworth 2019-02-04 23:39:37 -05:00 committed by emersion
parent 665381d305
commit 1e65cc1ea6

View File

@ -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] == '\'') {