Sfoglia il codice sorgente

fix: startup script blocking

MystiPanda 1 anno fa
parent
commit
9d741cdd63
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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}"));