mirror of
https://github.com/swaywm/sway.git
synced 2024-11-11 04:54:14 +01:00
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:
parent
66062f53de
commit
5d770d028a
@ -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…
Reference in New Issue
Block a user