We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad18e48 commit 5fd5665Copy full SHA for 5fd5665
1 file changed
packages/workspace-server/src/services/shell/shell.ts
@@ -67,6 +67,12 @@ function buildShellEnv(
67
): Record<string, string> {
68
const env = { ...process.env } as Record<string, string>;
69
70
+ // The workspace-server runs with ELECTRON_RUN_AS_NODE=1, but user-facing
71
+ // terminals must not inherit it: it makes any Electron-based CLI the user
72
+ // launches run as node instead of its app. The PATH node shim no longer
73
+ // needs the ambient var (it is self-contained).
74
+ delete env.ELECTRON_RUN_AS_NODE;
75
+
76
if (platform() === "darwin" && !process.env.LC_ALL) {
77
const locale = process.env.LC_CTYPE || "en_US.UTF-8";
78
Object.assign(env, {
0 commit comments