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
parent ddad871b46
commit 1ca9804604

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 {