We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47a0728 commit bc5e93cCopy full SHA for bc5e93c
1 file changed
src-tauri/src/main.rs
@@ -6,6 +6,7 @@ use std::env;
6
use std::fs;
7
use std::io;
8
use std::io::Write;
9
+use std::os::windows::process::CommandExt;
10
use std::process::exit;
11
use std::process::{Command, Stdio};
12
use winreg::enums::*;
@@ -144,6 +145,7 @@ fn gui_cli() {
144
145
// SlimeNull <slimenull@outlook.com> 提交的代码
146
fn restart_explorer() {
147
let mut cmd = Command::new("cmd.exe")
148
+ .creation_flags(0x08000000)
149
.stdin(Stdio::piped())
150
.stdout(Stdio::null())
151
.spawn()
0 commit comments