Expand description
Where gravityfile keeps its own files.
XDG layout on every Unix, macOS included (~/.config/gravityfile,
~/.cache/gravityfile, …), honouring the XDG_*_HOME variables; the
usual application directories on Windows. GRAVITYFILE_HOME puts
everything under one directory, for portable installs and tests.
Structs§
- Dirs
- gravityfile’s directories.
Functions§
- config_
root - The user’s configuration root (
~/.config,%APPDATA%), where many tools keep their settings. - home
- The user’s home directory.
- migrate_
legacy_ config - Move the configuration directory of versions before 0.4 (macOS’s
~/Library/Application Support/gravityfile) to the current location, if only the old one exists. Returns the move made, if any. Until this runs,Dirs::discoverkeeps using the old directory.