Skip to main content

Mountain/Binary/IPC/ProcessCommand/
process_get_exec_path.rs

1#![allow(non_snake_case)]
2
3//! Tauri command - return the absolute path of the running Mountain
4//! executable. Wire identifier kept snake_case to match Wind's
5//! `ProcessPolyfill` invoker.
6
7#[tauri::command]
8pub async fn process_get_exec_path() -> Result<String, String> {
9	std::env::current_exe()
10		.map(|P| P.to_string_lossy().to_string())
11		.map_err(|E| format!("Failed to get exec path: {}", E))
12}