Skip to content

Commit

Permalink
host-run: Convert output to string
Browse files Browse the repository at this point in the history
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
  • Loading branch information
pjbgf committed Nov 25, 2024
1 parent fcdd652 commit fd665c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/cli/host_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ qubesome host-run -profile <profile> firefox - Run firefox on the host and d
return err
}

c := exec.Command(commandName)
c := exec.Command(commandName, cmd.Args().Slice()...) //nolint
c.Env = append(c.Env, fmt.Sprintf("DISPLAY=:%d", prof.Display))
out, err := c.CombinedOutput()
fmt.Println(out)
fmt.Println(string(out))

return err
},
Expand Down

0 comments on commit fd665c3

Please sign in to comment.