Skip to content

Commit

Permalink
Add HOME env var for the child process where a plug-in is running
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
  • Loading branch information
azatsarynnyy committed Oct 28, 2018
1 parent 3a13ada commit 3efcfc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/plugin-ext/src/hosted/node/hosted-plugin-process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3efcfc0

Please sign in to comment.