Ver código fonte

fix(desktop): start tauri shell commands from home directory (#22535)

Brendan Allan 5 meses atrás
pai
commit
1ca9804604
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      packages/desktop/src-tauri/src/cli.rs

+ 1 - 0
packages/desktop/src-tauri/src/cli.rs

@@ -452,6 +452,7 @@ pub fn spawn_command(
         };
 
         let mut cmd = Command::new(shell);
+        cmd.current_dir(app.path().home_dir().unwrap());
         cmd.args(["-l", "-c", &line]);
 
         for (key, value) in envs {