Skip to content

Commit

Permalink
Write stdout/stderr of browser to proc's stdout/stderr (#22)
Browse files Browse the repository at this point in the history
Currently, the output of the browser to execute is entirely suppressed.
But it can be helpful to find out what went wrong with the browser if it
doesn't start up properly.
  • Loading branch information
Ma27 committed Aug 1, 2021
1 parent 0293a07 commit 9c707dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ func main() {

log.Printf("Starting browser...")
cmd := exec.Command("/bin/sh", "-c", conf.Browser)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
cmd.Env = append(os.Environ(), "PROXY="+conf.SOCKS5Addr)
if err := cmd.Run(); err != nil {
log.Fatalln(err)
Expand Down

0 comments on commit 9c707dc

Please sign in to comment.