From 3efcfc0772d41b403f4a7e8f714b2d1d6c963a73 Mon Sep 17 00:00:00 2001 From: Artem Zatsarynnyi Date: Sun, 28 Oct 2018 23:30:55 +0200 Subject: [PATCH] Add HOME env var for the child process where a plug-in is running Signed-off-by: Artem Zatsarynnyi --- packages/plugin-ext/src/hosted/node/hosted-plugin-process.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/plugin-ext/src/hosted/node/hosted-plugin-process.ts b/packages/plugin-ext/src/hosted/node/hosted-plugin-process.ts index 3515e3d323eeb..992076ae09833 100644 --- a/packages/plugin-ext/src/hosted/node/hosted-plugin-process.ts +++ b/packages/plugin-ext/src/hosted/node/hosted-plugin-process.ts @@ -112,6 +112,8 @@ export class HostedPluginProcess implements ServerPluginRunner { // create env and add PATH to it so any executable from root process is available const env = createIpcEnv(); env.PATH = process.env.PATH; + // add HOME to env since some plug-ins need to read files from user's home dir + env.HOME = process.env.HOME; const forkOptions: cp.ForkOptions = { silent: true,