Initial public release of Warp.

Repo-Sync-Origin: warpdotdev/warp-internal@12af1d983b
This commit is contained in:
David Stern
2026-04-28 08:43:33 -05:00
commit 0dbd3d567a
4982 changed files with 1431549 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
/// Detects if we're running in a Windows Parallels VM.
#[cfg(windows)]
pub fn is_running_in_windows_parallels_vm() -> bool {
use winreg::enums::*;
use winreg::RegKey;
let hklm = RegKey::predef(HKEY_LOCAL_MACHINE);
if let Ok(system_key) = hklm.open_subkey(r"HARDWARE\DESCRIPTION\System\BIOS") {
if let Ok(bios_version) = system_key.get_value::<String, _>("SystemManufacturer") {
if bios_version.to_lowercase().contains("parallels") {
return true;
}
}
}
false
}
#[cfg(not(windows))]
pub fn is_running_in_windows_parallels_vm() -> bool {
// On non-Windows platforms, we don't need this check
false
}