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

XDG Base Directory Specification compliance #4844

Closed
wants to merge 3 commits into from

Conversation

juanmeleiro
Copy link

Idris currently stores it's configuration files and cache (history file) on the ~/.idris directory. To comply with the XDG Base Directory Specification, it should use $XDG_CONFIG_HOME/idris (~/.config/idris by default) for configurations and $XDG_CACHE_HOME/idris (~/.cache/idris by default) for cache data.

However, doing that in a backwards compatible manner requries a work-around. With this commits, the REPL would use the old directory, if it exists, for both configuration and cache data, using the XDG ones otherwise (c.f. this comment).

When the usual ~/.idris directory exists, use it for config files and
cache. When not, use the ones returned by getXdgDirectories.
Specify the backwards-compatible behaviour on config file searching.
@juanmeleiro juanmeleiro marked this pull request as draft April 13, 2020 14:47
@juanmeleiro
Copy link
Author

I'm not really sure how to fix this issues. I can't really find anything about them on the contribution guide, so I'd appreciate some guidance.

@juanmeleiro
Copy link
Author

Just noticed there's another PR open for this same fix.

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

Successfully merging this pull request may close these issues.

1 participant