tauri_sys::path

Function runtime_dir

source
pub async fn runtime_dir() -> Result<PathBuf, Error>
Expand description

Returns the path to the user’s runtime directory.

§Platform-specific
  • Linux: Resolves to $XDG_RUNTIME_DIR.
  • macOS: Not supported.
  • Windows: Not supported.

§Example

use tauri_sys::path::runtime_dir;

let runtime_dir_path = runtime_dir().await?;