config: configuration errors are no longer fatal

Instead of refusing to start foot on configuration errors, we start
and print a user-notification.
This commit is contained in:
Daniel Eklöf 2020-07-31 17:07:14 +02:00
parent 639a61abd8
commit b00dfcf7b6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 144 additions and 80 deletions

View file

@ -127,7 +127,7 @@ struct config {
user_notifications_t notifications;
};
bool config_load(struct config *conf, const char *path);
bool config_load(struct config *conf, const char *path, bool errors_are_fatal);
void config_free(struct config conf);
struct config_font config_font_parse(const char *pattern);