Log when config file is not found

This happens when Sway is not installed on the system, so there's no
default config in /etc.
This commit is contained in:
Simon Ser 2021-01-17 18:06:21 +01:00
parent 43f82078cf
commit 38571e6a0c

View File

@ -407,6 +407,10 @@ bool load_main_config(const char *file, bool is_active, bool validating) {
} else {
path = get_config_path();
}
if (path == NULL) {
sway_log(SWAY_ERROR, "Cannot find config file");
return false;
}
char *real_path = realpath(path, NULL);
if (real_path == NULL) {