pub fn sessions_root() -> Result<PathBuf>Expand description
Root directory under which all session WIRE_HOMEs live.
Honors WIRE_HOME for testing (sessions root becomes
$WIRE_HOME/sessions/); otherwise:
- Linux:
$XDG_STATE_HOME/wire/sessions/(typically~/.local/state/wire/sessions/). - macOS / other Unix without XDG: falls back to
dirs::data_local_dir() / wire / sessions /, which on macOS is~/Library/Application Support/wire/sessions/. This mirrorsconfig::state_dir’s fallback so the two surfaces resolve to compatible roots on every platform.