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 npx and other processes that launch subprocesses #68

Merged
merged 1 commit into from
Nov 26, 2024
Merged

Conversation

anaisbetts
Copy link
Contributor

detached: true seems to break stdio inheritance for processes, instead try to use windowsHide. Also, log stderr to the log file

dsp-ant
dsp-ant previously approved these changes Nov 26, 2024
src/client/stdio.ts Outdated Show resolved Hide resolved
// (i.e. via `electron-forge start`) vs a production environment
// (i.e. YourApp.exe).
detached: process.platform === "win32" && isElectron(),
windowsHide: process.platform === "win32" && isElectron(),
Copy link
Member

Choose a reason for hiding this comment

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

TIOLI: Should this be an unconditional true now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably Yes but I wanted to be extra paranoid

@anaisbetts anaisbetts merged commit d5c0e86 into main Nov 26, 2024
4 checks passed
@anaisbetts anaisbetts deleted the ani/fix-npx branch November 26, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants