aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-10-18 14:03:48 -0400
committerDrew DeVault <sir@cmpwn.com>2015-10-18 14:03:48 -0400
commitee9b9414b9356593be835c16c68bfc73aad63425 (patch)
tree9fda6070aa8ee5291121203caea07382279c0a36 /sway
parent16e904634c65128610537bed7fcb16ac3bb45165 (diff)
parent71ebe8c36be6c702654ad550aa2e897d03b4e98f (diff)
Merge pull request #194 from sce/ignore_no_startup_id
Ignore exec switch "--no-startup-id".
Diffstat (limited to 'sway')
-rw-r--r--sway/commands.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 2358b9e9..5afddc4a 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -186,8 +186,21 @@ static enum cmd_status cmd_exec_always(int argc, char **argv) {
if (!checkarg(argc, "exec_always", EXPECTED_MORE_THAN, 0)) {
return CMD_FAILURE;
}
+
+ 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);
+ }
+
// Put argument into cmd array
- char *tmp = join_args(argv, argc);
char cmd[4096];
strcpy(cmd, tmp);
free(tmp);