pub fn default_config_path() -> Result<PathBuf>Expand description
Resolve the default config path.
Resolution order:
$XDG_CONFIG_HOME/audiorouter/config.toml— ifXDG_CONFIG_HOMEis set and non-empty~/.config/audiorouter/config.toml— if the file already exists there (XDG fallback, honoured on all platforms so dotfile-managed configs work on macOS/Windows too)- Platform-native config directory:
- Linux/BSD:
~/.config/audiorouter/config.toml - macOS:
~/Library/Application Support/audiorouter/config.toml - Windows:
%APPDATA%\audiorouter\config.toml
- Linux/BSD:
§Errors
Returns an error if the home/config directory cannot be determined.