Development Documentation (main branch) - For stable release docs, see docs.rs/eidetica
Skip to main content

default_socket_path

Function default_socket_path 

Source
pub fn default_socket_path() -> PathBuf
Expand description

Default socket path for the Eidetica service.

Resolution order:

  1. EIDETICA_SOCKET environment variable, if set.
  2. $XDG_RUNTIME_DIR/eidetica/service.sock, if XDG_RUNTIME_DIR is set (the standard Linux convention).
  3. /tmp/eidetica-$USER/service.sock as a last-resort fallback.

Used by the daemon CLI to choose where to bind and by default_socket_url to construct the equivalent unix:// URL for Instance::connect.