summaryrefslogtreecommitdiff
path: root/sway/commands/exec.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2017-12-04 16:52:05 -0500
committerGitHub <[email protected]>2017-12-04 16:52:05 -0500
commit83b4c0648d75932c693b8636242202ea728035da (patch)
treed2ddf512ebc46ea2c93c7a487cdf758c84e3d0bd /sway/commands/exec.c
parent9fbcdc79b692551cacdfda1f2413517fc556b66f (diff)
parent514c819ff98d72880c5b7e0beb7bd9ca866bc1ad (diff)
Merge pull request #1497 from emersion/cmd-exec
Add exec and exec_always commands
Diffstat (limited to 'sway/commands/exec.c')
-rw-r--r--sway/commands/exec.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/sway/commands/exec.c b/sway/commands/exec.c
new file mode 100644
index 00000000..dd71500a
--- /dev/null
+++ b/sway/commands/exec.c
@@ -0,0 +1,16 @@
+#include <string.h>
+#include "sway/commands.h"
+#include "log.h"
+#include "stringop.h"
+
+struct cmd_results *cmd_exec(int argc, char **argv) {
+ // TODO: config
+ /*if (!config->active) return cmd_results_new(CMD_DEFER, "exec", NULL);
+ if (config->reloading) {
+ char *args = join_args(argv, argc);
+ sway_log(L_DEBUG, "Ignoring 'exec %s' due to reload", args);
+ free(args);
+ return cmd_results_new(CMD_SUCCESS, NULL, NULL);
+ }*/
+ return cmd_exec_always(argc, argv);
+}