Skip to main content

state_path

Function state_path 

Source
pub fn state_path() -> Option<PathBuf>
Expand description

Where pools.json lives.

$XDG_STATE_HOME/envv/ on Unix, %LOCALAPPDATA%\envv\ on Windows, falling back to ~/.local/state/unv/. The same directory as the CLI’s sessions.json.

Returns None rather than guessing when there is no home directory to work from. There is deliberately no . fallback: a per-directory rotation cursor is its own quiet bug, where the same pool restarts at the first key every time you change directory.