Mountain/IPC/WindServiceAdapters/WindEnvironmentService.rs
1//! Wind-shaped environment-variable accessor. Reads
2//! `APP_ROOT` / `USER_DATA_PATH` from the process env so Wind's
3//! desktop bootstrap can stay agnostic to the Tauri side.
4
5pub struct Struct {}
6
7impl Struct {
8 pub fn new() -> Self { Self {} }
9
10 pub async fn get_app_root(&self) -> Result<String, String> { std::env::var("APP_ROOT").map_err(|e| e.to_string()) }
11
12 pub async fn get_user_data_path(&self) -> Result<String, String> {
13 std::env::var("USER_DATA_PATH").map_err(|e| e.to_string())
14 }
15}