From 45d3a705bed3c7fc14ff8202356e745532a7682e Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Sat, 3 Dec 2016 18:38:00 -0800 Subject: [PATCH] fix bug introduced by commit eaa37413 When I refactored the code to reduce redundancy and improve the error messages when the config or data directories could not be used I botched the customization of the $HOME based data path. --- src/path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path.cpp b/src/path.cpp index 44b30a61f..1cfda620a 100644 --- a/src/path.cpp +++ b/src/path.cpp @@ -266,7 +266,7 @@ static void path_create(wcstring &path, const wcstring &xdg_var, const wcstring } else { const env_var_t home = env_get_string(L"HOME", ENV_GLOBAL | ENV_EXPORT); if (!home.missing_or_empty()) { - path = home + L"/.config/fish"; + path = home + (which_dir == L"config" ? L"/.config/fish" : L"/.local/share/fish"); if (create_directory(path) != -1) { path_done = true; } else {