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

luxrays: rename GetConfigDir as GetCacheDir and use XDG_CACHE_HOME according to specifications #615

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

illwieckz
Copy link
Contributor

Rename GetConfigDir as GetCacheDir and use XDG_CACHE_HOME according to specifications.

  • ~/.config should only be used as a fallback if XDG_CONFIG_HOME isn't set.
  • ~/.config or XDG_CONFIG_HOME is a config directory, not a cache directory.
  • the cache directory is XDG_CACHE_HOME, is not set by default and should fallback on ~/.cache.
  • getenv returns nullptr but boost::filesystem::path doesn't accept nullptr.

This work is courtesy of I ♥ Compute initiative funded by 🇫🇷️ rebatir.fr.

…cording to specifications

- ~/.config should only be used as a fallback if XDG_CONFIG_HOME isn't set.
- ~/.config or XDG_CONFIG_HOME is a config directory, not a cache directory.
- the cache directory is XDG_CACHE_HOME, is not set by default and should fallback on ~/.cache.
- getenv returns nullptr but boost::filesystem::path doesn't accept nullptr.
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