From d935ee7203c68f04865862bcbceeac970f76dc65 Mon Sep 17 00:00:00 2001 From: "Christian W. Zuckschwerdt" Date: Mon, 17 Dec 2018 09:00:48 +0100 Subject: [PATCH] Change homedir conf load path --- conf/rtl_433.example.conf | 2 +- src/compat_paths.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/rtl_433.example.conf b/conf/rtl_433.example.conf index 47d90a29..86f75f3e 100644 --- a/conf/rtl_433.example.conf +++ b/conf/rtl_433.example.conf @@ -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 diff --git a/src/compat_paths.c b/src/compat_paths.c index d4768442..a69763cc 100644 --- a/src/compat_paths.c +++ b/src/compat_paths.c @@ -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";