diff --git a/src/main/shell-sync.ts b/src/main/shell-sync.ts index 5a44f4b362..4d165a1b1a 100644 --- a/src/main/shell-sync.ts +++ b/src/main/shell-sync.ts @@ -27,8 +27,9 @@ export function shellSync(locale: string) { process.env["PATH"] = env.PATH } + // The spread operator allows joining of objects. The precidence is last to first. process.env = { + ...env, ...process.env, - ...env }; }