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`.
master
Brian Ashworth 6 years ago committed by emersion
parent 665381d305
commit 1e65cc1ea6

@ -254,7 +254,7 @@ list_t *execute_command(char *_exec, struct sway_seat *seat,
//TODO better handling of argv //TODO better handling of argv
int argc; int argc;
char **argv = split_args(cmd, &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; int i;
for (i = 1; i < argc; ++i) { for (i = 1; i < argc; ++i) {
if (*argv[i] == '\"' || *argv[i] == '\'') { if (*argv[i] == '\"' || *argv[i] == '\'') {

Loading…
Cancel
Save