New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why doesn't astropy use ~/.config/astropy by default (on Unix-like systems)? #6803
Comments
Because XDG_CONFIG_HOME and XDG_CACHE_HOME are Linux standards for config and cache (usually ** Actually if XDG_CONFIG_HOME is not set, it should default to |
OK, maybe I should rephrase this: Why doesn't astropy use |
@weaverba137 I came here because I wanted to know the answer to "Why doesn't astropy use |
I would be happy to change the title. |
So from
This is not the "correct" behaviour on a linux system as far as I am aware. |
ping @eteq as he wrote it apparently. |
I would say that this ship has sailed. Unless we do something drastic like #8245, too much overhead in refactoring (including answering issues from confused users on the behavior change) for little reward. |
OK, but as @Cadair said:
Can we at least document that we are aware that this is not correct behavior? |
We should absolutely do #8245 and I am -1 on closing this as wont-fix. |
Feel free to open a PR for the desired documentation, as you already have an idea anyway. As for #8245, it is not trivial. Maybe for 5.0 if someone is willing to invest the time and energy, but not before. |
I agree it's not easy, but this bug should be fixed which is why I don't want to close it. 😄 |
If
$XDG_CONFIG_HOME
is set, astropy will look for configuration files in$XDG_CONFIG_HOME/astropy/
. However, it will not look for configuration files in$XDG_CONFIG_HOME/astropy/config/
. Similarly, if$XDG_CACHE_HOME
is set, astropy will look for cache files in$XDG_CACHE_HOME/astropy/
, not$XDG_CACHE_HOME/astropy/cache
. Why does the layout of$XDG_CONFIG_HOME/astropy/
have to be different from the layout of$HOME/.astropy/
, which containsconfig/
andcache/
directories? Unless one knows that the layout is different, one would expect that$XDG_CONFIG_HOME/astropy/config/
and$XDG_CACHE_HOME/astropy/cache/
would be the directories to contain configuration and cache files.The text was updated successfully, but these errors were encountered: