Hi, per the XDG Base Directory Specification, https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html , ${XDG_CACHE_HOME} is the environment variable used to denote the user's "cache" directory. bb_clientd does not respect this, and assumes ~/.cache. You can default to that if the variable turns up empty, but it shouldn't be assumed.
local homeDirectory = std.extVar('HOME');
- local cacheDirectory = homeDirectory + '/.cache/bb_clientd';
+ local cacheDirectory = std.extVar('XDG_CACHE_HOME') + '/bb_clientd';
Hi, per the XDG Base Directory Specification, https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html ,
${XDG_CACHE_HOME}
is the environment variable used to denote the user's "cache" directory.bb_clientd
does not respect this, and assumes~/.cache
. You can default to that if the variable turns up empty, but it shouldn't be assumed.Thank you