Skip to main content

user_config_dir

Function user_config_dir 

Source
pub fn user_config_dir(envmap: &HashMap<&str, &str>) -> Option<PathBuf>
Expand description

The user rung’s directory: $XDG_CONFIG_HOME/agentd, else ~/.config/agentd. None when neither variable is set — a daemon with no HOME (a scratch container, a systemd unit without one) simply has no user rung rather than resolving a path relative to nothing.