Use XDG_CONFIG_HOME for storing config files.
XDG Base Directory Specification recommends that config files not be placed directly in the user home directory ($HOME / ~ ). So instead of using ~/.radicle/ , could you please use $XDG_CONFIG_HOME/radicle or fall back to ~/.config/radicle/
https://specifications.freedesktop.org/basedir-spec/latest/
If you want to go full blown XDG,
$XDG_CONFIG_HOMEisn’t enough. The Storage and Node directories should probably be placed under$XDG_STATE_HOMEThanks for the issue! This is something that we have on our minds as well. To ensure backward-compatibility we would need to ensure that
RAD_HOMEis respected as well – at least during the transition period. We would like to sketch this out at some point – and as @levitte mentioned, we would follow the guidelines of the XDG specification and use the full suite of directories.There seems to be a few XDG libraries in Rust now. The xdg crate looks new to me, and then I’m also familiar with directories.