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