Skip to content

Commit

Permalink
binary: Moved setenv from pickCard into setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrelvas-ipc committed Oct 24, 2023
1 parent e0f46e1 commit 12c8a17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 0 additions & 3 deletions internal/config/cardpick.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,5 @@ func (b *Binary) pickCard() error {
} else {
b.Env.Set("__GLX_VENDOR_LIBRARY_NAME", "mesa")
}

b.Env.Setenv()

return nil
}
7 changes: 6 additions & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ func (b *Binary) setup() error {
return errors.New("invalid renderer given")
}

return b.pickCard()
if err := b.pickCard(); err != nil {
return err
}

b.Env.Setenv()
return nil
}

func (c *Config) setup() error {
Expand Down

0 comments on commit 12c8a17

Please sign in to comment.