Fix Windows Bug
This commit is contained in:
parent
65227fcd76
commit
44960f5d08
3 changed files with 188 additions and 135 deletions
12
src/tab.rs
12
src/tab.rs
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue