Skip to content

Commit

Permalink
internal/config: use direct env instead of global
Browse files Browse the repository at this point in the history
wont make much of a difference anyway
  • Loading branch information
apprehensions committed Oct 13, 2023
1 parent 9421d25 commit 1d05eb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (c *Config) setup() error {
return fmt.Errorf("invalid wine root given: %s", err)
}

c.Global.Env["PATH"] = bin + ":" + os.Getenv("PATH")
c.Env["PATH"] = bin + ":" + os.Getenv("PATH")
os.Unsetenv("WINEDLLPATH")
log.Printf("Using Wine Root: %s", c.WineRoot)
}
Expand All @@ -138,7 +138,6 @@ func (c *Config) setup() error {
}

c.Env.Setenv()
c.Global.Env.Setenv()

return nil
}

0 comments on commit 1d05eb1

Please sign in to comment.