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.
master
Simon Ser 4 years ago
parent 43f82078cf
commit 38571e6a0c

@ -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) {

Loading…
Cancel
Save