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/../binor$XDG_DATA_HOME/../binor$HOME/.local/bin. - macOS: Not supported.
- Windows: Not supported.
§Example
use tauri_sys::path::executable_dir;
let executable_dir_path = executable_dir().await?;