Function hoard::dirs::config_dir
source · [−]pub fn config_dir() -> PathBuf
Expand description
Returns Hoard’s configuration directory for the current user.
Returns the contents of HOARD_CONFIG_DIR
, if set, otherwise:
- Windows:
{appdata}/shadow53/hoard/config
where{appdata}
is the “known folder”FOLDERID_RoamingAppData
or the value of%APPDATA%
. - macOS:
${XDG_CONFIG_HOME}/hoard
, ifXDG_CONFIG_HOME
is set, otherwise$HOME/Library/Application Support/com.shadow53.hoard
. - Linux/BSD:
${XFG_CONFIG_HOME}/hoard
, ifXDG_CONFIG_HOME
is set, otherwise$HOME/.config/hoard
.