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

This commit is contained in:
Brendan Allan 2026-04-15 10:51:53 +08:00 committed by GitHub
commit 1ca9804604
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {