diff options
author | 2015-10-18 19:14:49 +0200 | |
---|---|---|
committer | 2015-10-18 19:14:49 +0200 | |
commit | 71ebe8c36be6c702654ad550aa2e897d03b4e98f (patch) | |
tree | 9fda6070aa8ee5291121203caea07382279c0a36 /sway | |
parent | commands: Ignore exec switch "--no-startup-id". (diff) | |
download | sway-71ebe8c36be6c702654ad550aa2e897d03b4e98f.tar.gz sway-71ebe8c36be6c702654ad550aa2e897d03b4e98f.tar.zst sway-71ebe8c36be6c702654ad550aa2e897d03b4e98f.zip |
commands: Catch empty exec with --no-startup-id cases.
Diffstat (limited to 'sway')
-rw-r--r-- | sway/commands.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c index 41223937..5afddc4a 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -190,6 +190,11 @@ static enum cmd_status cmd_exec_always(int argc, char **argv) { | |||
190 | char *tmp = NULL; | 190 | char *tmp = NULL; |
191 | if (strcmp((char*)*argv, "--no-startup-id") == 0) { | 191 | if (strcmp((char*)*argv, "--no-startup-id") == 0) { |
192 | sway_log(L_INFO, "exec switch '--no-startup-id' not supported, ignored."); | 192 | sway_log(L_INFO, "exec switch '--no-startup-id' not supported, ignored."); |
193 | |||
194 | if (!checkarg(argc - 1, "exec_always", EXPECTED_MORE_THAN, 0)) { | ||
195 | return CMD_FAILURE; | ||
196 | } | ||
197 | |||
193 | tmp = join_args(argv + 1, argc - 1); | 198 | tmp = join_args(argv + 1, argc - 1); |
194 | } else { | 199 | } else { |
195 | tmp = join_args(argv, argc); | 200 | tmp = join_args(argv, argc); |