Browse Source

use explorer to open logs folder on windows (#1520)

pull/1521/head
Jason Dove 1 year ago committed by GitHub
parent
commit
8fc1f36638
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      ErsatzTV-Windows/src/main.rs

5
ErsatzTV-Windows/src/main.rs

@ -43,10 +43,7 @@ fn main() { @@ -43,10 +43,7 @@ fn main() {
None => {}
Some(folder) => {
fs::create_dir_all(folder).unwrap();
let _ = Command::new("cmd")
.creation_flags(CREATE_NO_WINDOW)
.arg("/C")
.arg("start")
let _ = Command::new("explorer.exe")
.arg(folder)
.stdin(Stdio::null())
.stdout(Stdio::null())

Loading…
Cancel
Save