mirror of
https://github.com/swaywm/sway.git
synced 2024-11-04 15:33:13 +00:00
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:
parent
43f82078cf
commit
38571e6a0c
|
@ -407,6 +407,10 @@ bool load_main_config(const char *file, bool is_active, bool validating) {
|
||||||
} else {
|
} else {
|
||||||
path = get_config_path();
|
path = get_config_path();
|
||||||
}
|
}
|
||||||
|
if (path == NULL) {
|
||||||
|
sway_log(SWAY_ERROR, "Cannot find config file");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
char *real_path = realpath(path, NULL);
|
char *real_path = realpath(path, NULL);
|
||||||
if (real_path == NULL) {
|
if (real_path == NULL) {
|
||||||
|
|
Loading…
Reference in a new issue