aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/exec.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-12-05 12:35:51 -0500
committerGitHub <noreply@github.com>2017-12-05 12:35:51 -0500
commit3fe64482bb269a3dcceeaf1107b9d59dc60eb8d0 (patch)
tree8fea86b5c928d551723426e196405e5f2f25de2e /sway/commands/exec.c
parentf2aa33ae0f6cd91b88a3f24b65e3e915c3960931 (diff)
parent7e81d304a3121e92f78527dcf1327e991b0089ac (diff)
Merge pull request #1498 from emersion/config
Add minimal config subsystem
Diffstat (limited to 'sway/commands/exec.c')
-rw-r--r--sway/commands/exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/commands/exec.c b/sway/commands/exec.c
index dd71500a..fbbc4941 100644
--- a/sway/commands/exec.c
+++ b/sway/commands/exec.c
@@ -1,16 +1,16 @@
#include <string.h>
#include "sway/commands.h"
+#include "sway/config.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->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);
}