Skip to content
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

Store downloaded data in $XDG_DATA_HOME if that environment variable exists #2600

Open
namurphy opened this issue Mar 29, 2024 · 1 comment

Comments

@namurphy
Copy link
Member

namurphy commented Mar 29, 2024

The XDG Base Directory Specification "defines a set of standard paths for storing application files, including data and configuration files." For example, defining $XDG_CACHE_HOME$ will let us change the location where cached files get put.

Currently, data files that get downloaded end up being stored by default in ~/.plasmapy. It would be helpful to provide users with a way to control where the files get downloaded to. I'm thinking we could make it so that if $XDG_CACHE_HOME$ exists, then we could make it so that the data gets downloaded to a directory more or less like $XDG_CACHE_HOME/plasmapy/downloads.

We should make sure to describe this in the documentation too.

@namurphy
Copy link
Member Author

I just noticed that using this specification was brought up in this comment years ago!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant