Skip to main content

default_socket_path

Function default_socket_path 

Source
pub fn default_socket_path() -> String
Expand description

Get the default Unix socket path for the daemon.

Uses user-specific path for security isolation:

  • XDG_RUNTIME_DIR if available (Linux with systemd)
  • /tmp/grite-daemon-<uid>.sock as fallback on Unix
  • /tmp/grite-daemon.sock on non-Unix platforms