Skip to main content

connection_file_path

Function connection_file_path 

Source
pub fn connection_file_path() -> PathBuf
Expand description

Resolve subc’s per-user TCP connection-file path.

$XDG_RUNTIME_DIR/subc-connection.json is preferred because the runtime directory is already per-user on Unix desktops. Without it, Unix uses the daemon run directory so system temporary-file cleanup cannot remove the connection file. If that directory cannot be resolved, or on Windows with no runtime directory, the fallback is a per-user file in the system temp dir.