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

Consider placing RFC cache directory under XDG_CACHE_HOME? #21

Closed
mlawren opened this issue Mar 24, 2024 · 3 comments
Closed

Consider placing RFC cache directory under XDG_CACHE_HOME? #21

mlawren opened this issue Mar 24, 2024 · 3 comments
Assignees

Comments

@mlawren
Copy link

mlawren commented Mar 24, 2024

I've been trying to clean up my $HOME directory a little, where of course rfc adds it's cache directory. I was wondering if you would consider following the XDG_CACHE_HOME convention? That would possibly mean:

  • Using $XDG_CACHE_HOME for the parent directory if defined; or else
  • Using $HOME/.cache (and/or $HOME/Library/Caches?) for the parent directory
  • Warning or automatically moving the RFCs cache from $HOME to the location
@bfontaine
Copy link
Owner

Good idea!

@bfontaine bfontaine self-assigned this Mar 25, 2024
bfontaine added a commit that referenced this issue Mar 25, 2024
@bfontaine
Copy link
Owner

Right now we use $RFC_DIR with a default to $HOME/.RFCs. I changed this to default on $XDG_CACHE_HOME/RFCs if $XDG_CACHE_HOME is defined, or *HOME/.cache/RFCs if not.
I still need to add tests for that and add some code to migrate to the new location, and then I’ll release a new version.

@mlawren
Copy link
Author

mlawren commented Mar 27, 2024

Thanks very much!

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

2 participants