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

bb_clientd does not respect XDG_CACHE_HOME #16

Closed
staehle opened this issue Jul 11, 2024 · 0 comments
Closed

bb_clientd does not respect XDG_CACHE_HOME #16

staehle opened this issue Jul 11, 2024 · 0 comments

Comments

@staehle
Copy link

staehle commented Jul 11, 2024

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';

Thank you

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

1 participant