mirror of
https://github.com/swaywm/sway.git
synced 2024-11-13 05:54:11 +01:00
Config errors should not be fatal
This commit is contained in:
parent
7f8ebb7d0d
commit
6e8280e7fd
@ -223,12 +223,6 @@ static void handle_wlc_ready(void) {
|
|||||||
handle_command(config, config->cmd_queue->items[i]);
|
handle_command(config, config->cmd_queue->items[i]);
|
||||||
}
|
}
|
||||||
free_flat_list(config->cmd_queue);
|
free_flat_list(config->cmd_queue);
|
||||||
|
|
||||||
if (config->failed) {
|
|
||||||
sway_log(L_ERROR, "Programs have been execd, aborting!");
|
|
||||||
sway_abort("Unable to load config");
|
|
||||||
}
|
|
||||||
|
|
||||||
config->active = true;
|
config->active = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ int main(int argc, char **argv) {
|
|||||||
signal(SIGCHLD, sigchld_handle);
|
signal(SIGCHLD, sigchld_handle);
|
||||||
|
|
||||||
if (!load_config()) {
|
if (!load_config()) {
|
||||||
sway_log(L_ERROR, "Config load failed, aborting sway post init!");
|
sway_log(L_ERROR, "Errors loading config!");
|
||||||
}
|
}
|
||||||
|
|
||||||
setenv("WLC_IDLE_TIME", "0", 0);
|
setenv("WLC_IDLE_TIME", "0", 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user