Skip to main content

Mountain/Binary/IPC/ProcessCommand/
process_get_shell_env.rs

1
2//! Tauri command - return the full environment of the Mountain
3//! process. The process inherits the user's shell environment on every
4//! supported platform, so this is `process.env` for renderer code.
5
6use std::collections::HashMap;
7
8#[tauri::command]
9pub async fn process_get_shell_env() -> Result<HashMap<String, String>, String> { Ok(std::env::vars().collect()) }