Function tauri_sys::path::executable_dir

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

Returns the path to the user’s executable directory.

§Platform-specific
  • Linux: Resolves to $XDG_BIN_HOME/../bin or $XDG_DATA_HOME/../bin or $HOME/.local/bin.
  • macOS: Not supported.
  • Windows: Not supported.

§Example

use tauri_sys::path::executable_dir;

let executable_dir_path = executable_dir().await?;