Skip to content

location

Functions

  • default_dir - The directory that holds the connection.

firma_connection_store::location::default_dir

Section titled “firma_connection_store::location::default_dir”

Function

The directory that holds the connection.

It is $FIRMA_CONNECTION_DIR when set and not empty, otherwise firma inside the per-user configuration directory: $XDG_CONFIG_HOME (when absolute) or ~/.config on Linux and other Unix systems, ~/Library/Application Support on macOS, %APPDATA% on Windows.

Returns [StoreError::RelativeDirectory] for a relative FIRMA_CONNECTION_DIR, and [StoreError::NoConfigDirectory] when no directory is available.

fn default_dir() -> Result<std::path::PathBuf, crate::StoreError>