Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
Use XDG_CONFIG_HOME for storing config files.
did:key:z6MktG5z...jmDV opened 11 months ago

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 11 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

z6MkireR...3voM commented 11 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.

lorenz added crate=radicle 9 months ago
lorenz added config 9 months ago