fix(desktop): source shell rc before launching CLI#332
Conversation
Linux launcher starts can miss shell-managed Node binaries even when terminal launches work. Source the user's bash/zsh rc before exec so the bundled CLI resolves the same runtime in both paths.
|
I want you to perform the gatekeeper checks for latest PR state check for regressions |
|
Gatekeeper review for the latest PR state. What I understood
Findings
Overall
Suggestion
-- |
Let manage its own startup files and keep explicit rc sourcing limited to bash, preventing duplicate zsh startup side effects in launcher-started sessions.
|
Addressed in
I also rebuilt the branch after the change. |
|
I want you to perform the gatekeeper checks for latest PR state check for regressions |
|
Gatekeeper review for the latest PR state. What I understood
Findings
Residual risks / validation gaps
Overall
-- |
|
Re Doesn't bash always load ~/.bashrc, is this needed?
|
|
What I understood
Answers
Gatekeeper take
-- |
Do we need something similar for ~/.zshrc then? |
|
What I understood
Answer
Why bash is different here
Nuance
-- |
|
Does bash has similar to zsh -i ? |
|
What I understood
Answer
Why that is not automatically the right change here
Bottom line
-- |
|
@pascalandr - Shall we keep it same for both zsh and bash by adding -i ? |
|
I'd keep bash as-is for now. |
|
|
Verify my statement above |
|
What I understood
Verification
Relevant code
Specifically:
So the statement is only partially correct
Gatekeeper take
-- |
|
@pascalandr - I think we can align all with zsh/bash -i -l -c to ensure we don't get weird behaviors when zsh/bash is used. It will be difficult to know. |
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.
|
I want you to perform the gatekeeper checks for latest PR state check for regressions |
|
Gatekeeper review for the latest PR state. What I understood
Findings
Overall
-- |
|
@pascalandr - Can it please be aligned. |
Make Electron and Tauri launch bash and zsh the same way: login + interactive shell flags, with no extra manual rc sourcing on top.
|
Aligned as requested in
I hit some workspace dependency churn while trying to rerun the local build in this worktree, but the code path is now aligned with the updated Electron behavior. |
|
I want you to perform the gatekeeper checks for latest PR state check for regressions |
|
Gatekeeper review for the latest PR state. What I understood
Findings
Non-blocking note
Residual validation gap
Overall
-- |
Remove the now-dead wrap_command_for_shell helper after the bash/zsh alignment so the Tauri shell launch path matches the final behavior directly.
|
wrap_command_for_shell() was suppressed and inlined in uild_shell_command_string() verify my correction |
|
What I understood
Verification
What is true
Nuance
Relevant code
Gatekeeper take
-- |
|
Thanks @pascalandr |
Fixes #326
Summary
-l -i -cfor zsh so shell-managed Node runtimes are available in launcher-started sessionsCLI exited early: exit status: 127while terminal launches workValidation
v0.14.0Linux binarycargo buildon the dev-based PR branch