Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
Use XDG_CONFIG_HOME for storing config files.
Open did:key:z6MktG5z...jmDV opened 10 months ago config crate=radicle

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/

levitte commented 10 months ago

If you want to go full blown XDG, $XDG_CONFIG_HOME isn’t enough. The Storage and Node directories should probably be placed under $XDG_STATE_HOME

fintohaps commented 10 months ago

Thanks 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_HOME is 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.