Skip to main content

runtime_dir

Function runtime_dir 

Source
pub fn runtime_dir() -> PathBuf
Expand description

Get the appropriate runtime directory based on execution context

Path selection follows FHS 3.0 and XDG Base Directory specifications:

  • Root/system service: /run/hyprstream/
  • User service: $XDG_RUNTIME_DIR/hyprstream/
  • Fallback (no systemd): /tmp/hyprstream-<uid>/