Fix Windows Bug

This commit is contained in:
Wyatt Herkamp 2024-01-28 06:23:40 -05:00 committed by Jeremy Soller
parent 65227fcd76
commit 44960f5d08
3 changed files with 188 additions and 135 deletions

View file

@ -169,10 +169,16 @@ fn open_command(path: &PathBuf) -> process::Command {
#[cfg(target_os = "windows")]
fn open_command(path: &PathBuf) -> process::Command {
use std::os::windows::process::CommandExt;
let mut command = process::Command::new("cmd");
command.arg("/c");
command.arg("start");
command.arg(path);
command
.arg("/c")
.arg("start")
.raw_arg("\"\"")
.arg(path)
.creation_flags(0x08000000);
command
}