Permalink
Browse files

configuration: fix XDG_CONFIG_HOME handling

  • Loading branch information...
benoit-pierre authored and arybczak committed Jan 27, 2015
1 parent 5113670 commit 27cd86e0638bba3a7a78e44ac40dc98a58d1d90d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/configuration.cpp
View
@@ -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<std::string> default_config_paths = {
"~/.ncmpcpp/config",
xdg_config_home() + "config"
xdg_config_home() + "ncmpcpp/config"
};
std::string bindings_path;

0 comments on commit 27cd86e

Please sign in to comment.