mirror of
https://github.com/NickHu/sway
synced 2024-12-27 21:58:11 +01:00
commands: Catch empty exec with --no-startup-id cases.
This commit is contained in:
parent
71bcee4f96
commit
71ebe8c36b
1 changed files with 5 additions and 0 deletions
|
@ -190,6 +190,11 @@ static enum cmd_status cmd_exec_always(int argc, char **argv) {
|
|||
char *tmp = NULL;
|
||||
if (strcmp((char*)*argv, "--no-startup-id") == 0) {
|
||||
sway_log(L_INFO, "exec switch '--no-startup-id' not supported, ignored.");
|
||||
|
||||
if (!checkarg(argc - 1, "exec_always", EXPECTED_MORE_THAN, 0)) {
|
||||
return CMD_FAILURE;
|
||||
}
|
||||
|
||||
tmp = join_args(argv + 1, argc - 1);
|
||||
} else {
|
||||
tmp = join_args(argv, argc);
|
||||
|
|
Loading…
Reference in a new issue