mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-24 11:53:09 +00:00
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.
This commit is contained in:
parent
4288db9d39
commit
45d3a705be
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue