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