From 392ae68e5f802e940b7b7f5a139af7e2698b5e0e Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 5 Sep 2015 15:33:19 +0200 Subject: options: fix --no-config This was completely broken. It was checked manually in some config loading paths, so it appeared to work. But the intention was always to completely disable reading from the normal config dir. This logic was broken in commit 2263f37d. The manual checks are actually redundant, and are not needed if --no-config is implemented properly - remove them. Additionally, the change to load the libmpv defaults from an embedded profile also failed to set "config=no". The option is marked as not being settable by a config file, and the libmpv default profile is parsed as a config file, so this option was rejected. Fix it by removing the CONF_NOCFG flag. (Alternatively, m_config_set_profile() could be changed not to set the "config file" flag by default, but I'm not bothering with this.) --- input/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input') diff --git a/input/input.c b/input/input.c index c22ece8203..5b3370736a 100644 --- a/input/input.c +++ b/input/input.c @@ -1229,7 +1229,7 @@ void mp_input_load(struct input_ctx *ictx) bool config_ok = false; if (input_conf->config_file) config_ok = parse_config_file(ictx, input_conf->config_file, true); - if (!config_ok && ictx->global->opts->load_config) { + if (!config_ok) { // Try global conf dir void *tmp = talloc_new(NULL); char **files = mp_find_all_config_files(tmp, ictx->global, "input.conf"); -- cgit v1.2.3