mirror of
https://github.com/swaywm/sway.git
synced 2026-04-21 06:46:22 -04:00
config: fix validation exit code and log level
This makes it so invalid configs will return the exit code 1 when the validation flag is given. This also reduces the log level to SWAY_ERROR, which makes it so only the errors are shown. If someone wants more verbose output, the can use the -V/--verbose or -d/--debug flags. Additionally, this also makes it so swaybg will not be spawned when validating the config.
This commit is contained in:
parent
31a83bd48d
commit
33a984bbc5
3 changed files with 3 additions and 3 deletions
|
|
@ -404,7 +404,7 @@ static bool load_config(const char *path, struct sway_config *config,
|
|||
sway_log(SWAY_ERROR, "Error(s) loading config!");
|
||||
}
|
||||
|
||||
return true;
|
||||
return config->active || !config->validating || config_load_success;
|
||||
}
|
||||
|
||||
bool load_main_config(const char *file, bool is_active, bool validating) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue