fix(desktop): align shell invocation across Electron and Tauri

Use zsh/bash -i -l -c in both desktop runtimes so interactive login shell startup stays consistent and avoids runtime differences between Electron and Tauri.
This commit is contained in:
Pascal André
2026-04-18 21:30:21 +02:00
parent 99b2066923
commit ec3b418934
2 changed files with 8 additions and 20 deletions

View File

@@ -1288,8 +1288,11 @@ fn build_shell_args(shell: &str, command: &str) -> Vec<String> {
.unwrap_or("")
.to_lowercase();
let _ = shell_name;
vec!["-l".into(), "-c".into(), command.into()]
if shell_name.contains("zsh") || shell_name.contains("bash") {
vec!["-i".into(), "-l".into(), "-c".into(), command.into()]
} else {
vec!["-l".into(), "-c".into(), command.into()]
}
}
fn first_existing(paths: Vec<Option<PathBuf>>) -> Option<String> {