diff options
Diffstat (limited to 'src-tauri/src/platform_specific/mod.rs')
-rw-r--r-- | src-tauri/src/platform_specific/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src-tauri/src/platform_specific/mod.rs b/src-tauri/src/platform_specific/mod.rs index d5acfde8..8dca9424 100644 --- a/src-tauri/src/platform_specific/mod.rs +++ b/src-tauri/src/platform_specific/mod.rs @@ -4,6 +4,12 @@ pub mod windows; #[cfg(target_os = "linux")] pub mod linux; +/// Returns identifier of host OS FlightCore is running on +#[tauri::command] +pub fn get_host_os() -> String { + std::env::consts::OS.to_string() +} + /// On Linux attempts to install NorthstarProton /// On Windows simply returns an error message #[tauri::command] |