Mercurial > sci
diff scid/scid.c @ 66:5076be758687 0.1.0
misc: update before 0.1.0 release
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 20 Aug 2022 10:36:55 +0200 |
parents | 85c59fbf1407 |
children | 71cd8447e3a4 |
line wrap: on
line diff
--- a/scid/scid.c Thu Aug 18 20:21:33 2022 +0200 +++ b/scid/scid.c Sat Aug 20 10:36:55 2022 +0200 @@ -25,6 +25,7 @@ #include "theme.h" struct scid scid = { + .themedir = SHAREDIR "/sci/themes/bulma", .dbpath = VARDIR "/db/sci/sci.db" }; @@ -37,8 +38,10 @@ static void init_database(void) { + log_info("scid: opening database %s", scid.dbpath); + if (db_open(scid.dbpath) < 0) - log_die("scid: unable to open database"); + exit(1); /* Retrieve or create the API key if not existing. */ switch (db_key_get(scid.apikey, sizeof (scid.apikey))) {