From 9d741cdd638d45cf82d6dfa3cf86ea5fe2a13032 Mon Sep 17 00:00:00 2001 From: MystiPanda Date: Sat, 20 Apr 2024 17:52:54 +0800 Subject: [PATCH] fix: startup script blocking --- src-tauri/src/utils/init.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/utils/init.rs b/src-tauri/src/utils/init.rs index 8ffabc87..b81a12da 100644 --- a/src-tauri/src/utils/init.rs +++ b/src-tauri/src/utils/init.rs @@ -304,7 +304,7 @@ pub fn startup_script() -> Result<()> { shell = "powershell"; } if path.ends_with(".bat") { - shell = "cmd"; + shell = "powershell"; } if shell.is_empty() { return Err(anyhow::anyhow!("unsupported script: {path}"));