소스 검색

fix: startup script blocking

MystiPanda 1 년 전
부모
커밋
9d741cdd63
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src-tauri/src/utils/init.rs

+ 1 - 1
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}"));