mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
Add minimal config subsystem
This commit is contained in:
parent
83b4c0648d
commit
90f7f1a0e6
11 changed files with 1091 additions and 19 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue