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 27deb29 commit 5163741Copy full SHA for 5163741
lib/worker/lib/workerLib.ts
@@ -231,7 +231,10 @@ export class Parent extends RequesterResponder {
231
/** start worker */
232
startWorker(childJsPath: string, terminalError: (e: Error) => any, customArguments: string[]) {
233
try {
234
- var spawnEnv = process.env;
+ /** At least on NixOS, the environment must be preserved for
235
+ dynamic libraries to be properly linked.
236
+ On Windows/MacOS, it needs to be cleared, cf. atom/atom#2887 */
237
+ var spawnEnv = (process.platform === 'linux') ? Object.create(process.env) : {};
238
spawnEnv['ATOM_SHELL_INTERNAL_RUN_AS_NODE'] = '1';
239
this.child = spawn(this.node, [
240
// '--debug', // Uncomment if you want to debug the child process
0 commit comments