You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Various crates use / hard code $HOME/.config as the location to store various configuration/output files, and using different approaches to resolve $HOME
We currently put the logs in ~/.config/goose/logs which imo should go somewhere else (maybe $HOME/.local/state/goose?)
I know the mac developer guide recommends things like ~/Library/Application Support (see MOSXAppProgrammingGuide an older guide but seems to still be relevant) , but I do like the ~/.config for MacOS personally, even more from a CLI perspective.
Consolidate configuration & logging locations
Various crates use / hard code
$HOME/.config
as the location to store various configuration/output files, and using different approaches to resolve$HOME
dirs::home_dir()
$HOME
and joining the pathWe should consolidate on a single approach, and ensure whatever approach we take supports other OSs (windows, etc).
The XDG spec could be something an option to follow: https://specifications.freedesktop.org/basedir-spec/latest/.
We currently put the logs in
~/.config/goose/logs
which imo should go somewhere else (maybe$HOME/.local/state/goose
?)I know the mac developer guide recommends things like
~/Library/Application Support
(see MOSXAppProgrammingGuide an older guide but seems to still be relevant) , but I do like the~/.config
for MacOS personally, even more from a CLI perspective.A couple crates we can evaluate:
The text was updated successfully, but these errors were encountered: