Define the LANG variable when executing actions
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
nemunaire 2023-11-04 10:04:29 +01:00
commit 37c951ef85
4 changed files with 24 additions and 6 deletions

View file

@ -174,8 +174,9 @@ func (a *Action) Remove() error {
return os.Remove(a.Path)
}
func (a *Action) Launch() (cmd *exec.Cmd, err error) {
func (a *Action) Launch(settings *Settings) (cmd *exec.Cmd, err error) {
cmd = exec.Command(a.fullPath)
cmd.Env = append(cmd.Environ(), fmt.Sprintf("LANG=%s", settings.Language))
err = cmd.Start()
return
}