From 27cd86e0638bba3a7a78e44ac40dc98a58d1d90d Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Tue, 27 Jan 2015 16:41:19 +0100 Subject: [PATCH] configuration: fix XDG_CONFIG_HOME handling --- src/configuration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/configuration.cpp b/src/configuration.cpp index 55304048..398e10b3 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -44,7 +44,7 @@ std::string xdg_config_home() std::string result; const char *env_xdg_config_home = getenv("XDG_CONFIG_HOME"); if (env_xdg_config_home == nullptr) - result = "~/.config/ncmpcpp/"; + result = "~/.config/"; else { result = env_xdg_config_home; @@ -67,7 +67,7 @@ bool configure(int argc, char **argv) { const std::vector default_config_paths = { "~/.ncmpcpp/config", - xdg_config_home() + "config" + xdg_config_home() + "ncmpcpp/config" }; std::string bindings_path;