1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-22 22:42:48 +03:00

maybe fix win32 build for real

nth time's the charm!
This commit is contained in:
Wez Furlong 2022-04-06 19:44:38 -07:00
parent 5eb3b122a6
commit 9e1a6c5a75

View File

@ -443,7 +443,9 @@ impl CommandBuilder {
.get_env("ComSpec")
.unwrap_or(OsStr::new("cmd.exe"))
.into();
Ok(exe.into_string()?)
Ok(exe
.into_string()
.unwrap_or_else(|| "%CompSpec%".to_string()))
}
pub(crate) fn cmdline(&self) -> anyhow::Result<(Vec<u16>, Vec<u16>)> {