Skip to main content

Module datadir

Module datadir 

Source
Expand description

Platform data-directory resolution for zenith-session.

The resolved directory is the root under which all .zen store data lives.

§Platform mapping (via the dirs crate)

PlatformPath
Linux$XDG_DATA_HOME/zenith (falls back to ~/.local/share/zenith)
macOS~/Library/Application Support/zenith
Windows%LOCALAPPDATA%\zenith

§Override

Set ZENITH_DATA_DIR to a non-empty path to bypass platform detection entirely. Useful for testing and for portable installations.

Functions§

resolve_data_dir
Resolve the zenith data directory using real environment variables.
resolve_data_dir_with
Resolve the zenith data directory using an injectable environment lookup.