diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2016-11-20 23:14:47 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2016-11-20 23:14:47 +0100 |
commit | 1fa2ddbdfdc674f62f2940dff5814f169d6353a1 (patch) | |
tree | e5d595b1eb5ce5bc2d771d0617f22c7dc92c59dd | |
parent | b9a27cf18784bfe43fea85d5f097d3ddff707a3c (diff) | |
download | nncmpp-1fa2ddbdfdc674f62f2940dff5814f169d6353a1.tar.gz nncmpp-1fa2ddbdfdc674f62f2940dff5814f169d6353a1.tar.xz nncmpp-1fa2ddbdfdc674f62f2940dff5814f169d6353a1.zip |
Fix launch w/o configuration
-rw-r--r-- | nncmpp.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -695,7 +695,7 @@ static struct config_schema g_config_settings[] = { .name = "address", .comment = "Address to connect to the MPD server", .type = CONFIG_ITEM_STRING, - .default_ = "localhost" }, + .default_ = "\"localhost\"" }, { .name = "password", .comment = "Password to use for MPD authentication", .type = CONFIG_ITEM_STRING }, @@ -832,6 +832,9 @@ app_load_configuration (void) config_register_module (config, "colors", load_config_colors, NULL); config_register_module (config, "streams", load_config_streams, NULL); + // Bootstrap configuration, so that we can access schema items at all + config_load (config, config_item_object ()); + char *filename = resolve_filename (PROGRAM_NAME ".conf", resolve_relative_config_filename); if (!filename) |