Skip to main content

Mountain/Binary/IPC/ProcessCommand/
process_get_exec_path.rs

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