Skip to content
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

fix: 🐛 Fix electron not inheriting path variable in production #1948

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

ZedLi
Copy link
Collaborator

@ZedLi ZedLi commented Oct 10, 2023

Description

It turns out electron does not properly inherit the path variable from process.env.PATH in production. This presents a problem as users won't have access to many of their binaries that they normally would have on their path.

If you're wondering why I didn't use the fix-path package directly, it's because they switched over to ESM and we can't directly use it. Their previous version doesn't fix linux so I had to manually use it.

Screenshots (if appropriate):

Before:
image

After:
image

How to Test

Create a production build locally and confirm your path gets loaded correctly when opening a shell in boundary.

@ZedLi ZedLi self-assigned this Oct 10, 2023
@ZedLi ZedLi requested a review from a team as a code owner October 10, 2023 23:59
@vercel
Copy link

vercel bot commented Oct 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
boundary-ui ✅ Ready (Inspect) Visit Preview Oct 10, 2023 11:59pm
boundary-ui-desktop ✅ Ready (Inspect) Visit Preview Oct 10, 2023 11:59pm

Copy link
Collaborator

@cameronperera cameronperera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix!

Copy link
Collaborator

@DhariniJeeva DhariniJeeva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! Thanks for the fix!

Copy link
Collaborator

@lisbet-alvarez lisbet-alvarez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THank you!!

@ZedLi ZedLi merged commit 2e7399f into main Oct 11, 2023
9 checks passed
@ZedLi ZedLi deleted the bugfix/fix-electron-not-properly-inheriting-path branch October 11, 2023 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants