launch_browser_unix.go 171 B

123456789101112
  1. //go:build linux || freebsd || openbsd || netbsd
  2. package token
  3. import (
  4. "os/exec"
  5. )
  6. func getBrowserCmd(url string) *exec.Cmd {
  7. return exec.Command("xdg-open", url)
  8. }