Skip to content

Commit

Permalink
config: use global env
Browse files Browse the repository at this point in the history
  • Loading branch information
apprehensions committed Nov 2, 2023
1 parent 8030c9b commit e318b72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (c *Config) setup() error {
return fmt.Errorf("invalid wine root given: %s", err)
}

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

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

return nil
}

0 comments on commit e318b72

Please sign in to comment.