Skip to main content

Module paths

Module paths 

Source
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::discover keeps using the old directory.