Skip to content
This repository was archived by the owner on Apr 13, 2026. It is now read-only.

fix: spawn PTY as login shell to load full PATH - #130

Merged
sorrycc merged 1 commit into
masterfrom
fix/pty-login-shell
Feb 12, 2026
Merged

fix: spawn PTY as login shell to load full PATH#130
sorrycc merged 1 commit into
masterfrom
fix/pty-login-shell

Conversation

@iamdin

@iamdin iamdin commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Spawn PTY shell with -l flag to start as login shell, ensuring ~/.zprofile and other login profile files are sourced
  • Fixes terminal not finding node/npm when the app is launched from Finder/Dock instead of a terminal

Closes #101

Test plan

  • Launch app from Finder/Dock (not terminal)
  • Open Terminal, run echo $PATH — should include homebrew/nvm/volta paths
  • Run which node and which npm — should resolve correctly
  • Run node --version — should match the version configured via nvm/volta

@sorrycc
sorrycc merged commit b3292bb into master Feb 12, 2026
3 checks passed
@github-actions

Copy link
Copy Markdown

Build Ready

Architecture Download DMG Size ZIP Size
Apple Silicon Download 105.21 MB 110.59 MB
Intel Download 108.48 MB 115.18 MB

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Node版本不一致

2 participants