mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-25 14:05:41 -05:00
Fix startup failure on macOS with dash as /bin/sh
The dash's exec doesn't have `-a` argument we rely on when running login shell, so use zsh instead. Fixes #6426.
This commit is contained in:
parent
62e9d3ab39
commit
e3af53c863
2 changed files with 4 additions and 1 deletions
|
@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||
- `--help` output for `--class` does not match man pages
|
||||
- Cursor and underlines always being black on very old hardware
|
||||
- Crash when using very low negative `font.offset`
|
||||
- Startup failure on macOS with default config when system `/bin/sh` is `dash`
|
||||
|
||||
## 0.11.0
|
||||
|
||||
|
|
|
@ -143,7 +143,9 @@ fn default_shell_command(pw: &Passwd<'_>) -> Command {
|
|||
// -f: Bypasses authentication for the already-logged-in user.
|
||||
// -l: Skips changing directory to $HOME and prepending '-' to argv[0].
|
||||
// -p: Preserves the environment.
|
||||
login_command.args(["-flp", pw.name, "/bin/sh", "-c", &exec]);
|
||||
//
|
||||
// XXX: we use zsh here over sh due to `exec -a`.
|
||||
login_command.args(["-flp", pw.name, "/bin/zsh", "-c", &exec]);
|
||||
login_command
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue