Function tauri_sys::path::config_dir
source · pub async fn config_dir() -> Result<PathBuf, Error>
Expand description
Returns the path to the user’s config directory.
§Platform-specific
- Linux: Resolves to
$XDG_CONFIG_HOME
or$HOME/.config
. - macOS: Resolves to
$HOME/Library/Application Support
. - Windows: Resolves to
{FOLDERID_RoamingAppData}
.
§Example
use tauri_sys::path::config_dir;
let config_dir_path = config_dir().await?;