()
| 200 | |
| 201 | #[cfg(target_os = "windows")] |
| 202 | fn get_settings_policy_file_path() -> String |
| 203 | { |
| 204 | // $env:ProgramData+"\dsc\dsc.settings.json" |
| 205 | // This location is writable only by admins, but readable by all users |
| 206 | let Ok(local_program_data_path) = std::env::var("ProgramData") else { return String::new(); }; |
| 207 | Path::new(&local_program_data_path).join("dsc").join("dsc.settings.json").display().to_string() |
| 208 | } |
| 209 | |
| 210 | #[cfg(not(target_os = "windows"))] |
| 211 | fn get_settings_policy_file_path() -> String |