Skip to content

Commit

Permalink
Merge pull request #299 from FlowFuse/ensure-home-env-var-set
Browse files Browse the repository at this point in the history
Add HOME env var to passed through list
  • Loading branch information
knolleary authored Jul 23, 2024
2 parents 96a9001 + 4174342 commit f6c9d27
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,13 @@ class Launcher {
// must always include the PATH so npm works
env.PATH = process.env.PATH

// should set HOME env var
if (process.platform === 'win32') {
env.UserProfile = process.env.UserProfile
} else {
env.HOME = process.env.HOME
}

// Use local timezone if set, else use one from snapshot settings
// this will be ignored on Windows as it does not use the TZ env var
env.TZ = process.env.TZ ? process.env.TZ : this.settings?.settings?.timeZone
Expand Down

0 comments on commit f6c9d27

Please sign in to comment.