Change homedir conf load path

This commit is contained in:
Christian W. Zuckschwerdt
2018-12-17 09:00:48 +01:00
parent 0b1830004a
commit d935ee7203
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
#
# If no -c option is given the first found of this list will be loaded:
# - ./rtl_433.conf
# - ~/.rtl_433.conf
# - ~/.rtl_433/rtl_433.conf
# - /usr/local/etc/rtl_433.conf
# - /etc/rtl_433.conf

View File

@@ -19,7 +19,7 @@ char **compat_get_default_conf_paths()
static char buf[256] = "";
if (!paths[0]) {
paths[0] = "rtl_433.conf";
snprintf(buf, sizeof(buf), "%s%s", getenv("HOME"), "/.rtl_433.conf");
snprintf(buf, sizeof(buf), "%s%s", getenv("HOME"), "/.rtl_433/rtl_433.conf");
paths[1] = buf;
paths[2] = "/usr/local/etc/rtl_433/rtl_433.conf";
paths[3] = "/etc/rtl_433/rtl_433.conf";