Skip to content

Fix shell environment loading for Zed installations with spaces in path #32702

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2025

Conversation

rgbkrk
Copy link
Member

@rgbkrk rgbkrk commented Jun 13, 2025

Follow-up to: #32637

When Zed is installed in a path containing spaces (e.g., /Applications/Zed Nightly.app/Contents/MacOS/zed), environment variable loading fails and leaves this in the Zed log:

login shell exited with exit status: 127. stdout: "", stderr: "Nightly.app/Contents/MacOS/zed --printenv >&0: /Applications/Zed: No such file or directory"

This was not part a release (only broke in nightly), but fixes it the issue in any case when the path to the Zed.app bundle has a space (e.g. "Zed Nightly.app")

Release Notes:

  • N/A

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jun 13, 2025
@rgbkrk
Copy link
Member Author

rgbkrk commented Jun 13, 2025

Ok and here I thought I was doing titles wrong by not including punctuation. It's been too long.

@rgbkrk rgbkrk changed the title Fix shell environment loading for Zed installations with spaces in path. Fix shell environment loading for Zed installations with spaces in path Jun 13, 2025
@rgbkrk rgbkrk force-pushed the quote-app-path-spaces-print-env branch from b2ed08e to 4ec3612 Compare June 13, 2025 17:42
@notpeter
Copy link
Member

Apologies for letting this sneak into Nightly and thanks for the quick fix.

@rgbkrk rgbkrk enabled auto-merge (squash) June 13, 2025 18:06
@rgbkrk rgbkrk merged commit 2948e18 into main Jun 13, 2025
54 of 58 checks passed
@rgbkrk rgbkrk deleted the quote-app-path-spaces-print-env branch June 13, 2025 18:12
Copilot AI pushed a commit to awesomekyle/zed that referenced this pull request Jun 14, 2025
…th (zed-industries#32702)

Follow-up to: zed-industries#32637

When Zed is installed in a path containing spaces (e.g.,
`/Applications/Zed Nightly.app/Contents/MacOS/zed`), environment
variable loading fails and leaves this in the Zed log:

```
login shell exited with exit status: 127. stdout: "", stderr: "Nightly.app/Contents/MacOS/zed --printenv >&0: /Applications/Zed: No such file or directory"
```

This was not part a release (only broke in nightly), but fixes it the
issue in any case when the path to the Zed.app bundle has a space (e.g.
"Zed Nightly.app")

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants