Skip to content

Commit

Permalink
configuration: fix XDG_CONFIG_HOME handling
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre authored and arybczak committed Jan 27, 2015
1 parent 5113670 commit 27cd86e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/configuration.cpp
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 27cd86e

Please sign in to comment.