Skip to main content

sessions_root

Function sessions_root 

Source
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 mirrors config::state_dir’s fallback so the two surfaces resolve to compatible roots on every platform.