LuxCore
LuxCore copied to clipboard
luxrays: rename GetConfigDir as GetCacheDir and use XDG_CACHE_HOME according to specifications
Rename GetConfigDir as GetCacheDir and use XDG_CACHE_HOME according to specifications.
~/.configshould only be used as a fallback ifXDG_CONFIG_HOMEisn't set.~/.configorXDG_CONFIG_HOMEis a config directory, not a cache directory.- the cache directory is
XDG_CACHE_HOME, is not set by default and should fallback on~/.cache. getenvreturnsnullptrbutboost::filesystem::pathdoesn't acceptnullptr.
This work is courtesy of I ♥ Compute initiative funded by 🇫🇷️ rebatir.fr.