fix(terminal): Default to the account's login shell

$SHELL is inherited from whatever launched the app, so starting it from a
terminal running bash opened bash even when the login shell is zsh. Read
the passwd entry first and fall back to $SHELL.

Claude-Session: https://claude.ai/code/session_01B65qLEKnkeYTGdbwhLpjCu
Цей коміт міститься в:
l0ng-ai committed 2026-10-24 12:36:40 +08:00
1 джерело 1bb454bd2f
коміт 1f5fcb477d
2 files changed
+30 -3

No files matched your search

+1 -1
Переглянути файл
@@ -3740,7 +3740,7 @@ export type TerminalInfo = {
export type TerminalOptions = {
cwd: IpcPath,
/** Defaults to the user's login shell (`$SHELL`, or `COMSPEC` on Windows). */
/** Defaults to the user's login shell (passwd entry, then `$SHELL`; PowerShell or `COMSPEC` on Windows). */
shell: string | null,
args: string[],
env: { [key in string]: string },