Added default system-wide config file

This commit is contained in:
TheDarkBug 2022-03-08 21:24:52 +01:00
parent bff91711cd
commit acd9662a30
5 changed files with 24 additions and 2 deletions

View file

@ -162,6 +162,8 @@ struct configuration parse_config(struct info* user_info) {
char homedir[512];
sprintf(homedir, "%s/.config/uwufetch/config", getenv("HOME"));
config = fopen(homedir, "r");
if (!config)
config = fopen("/etc/uwufetch/config", "r");
}
} else
config = fopen(user_info->config_directory, "r");