github.com/engineyard/workflow-cli@v2.21.6+incompatible/pkg/webbrowser/webbrowser_linux.go (about)

     1  // +build linux
     2  
     3  package webbrowser
     4  
     5  import (
     6  	"os/exec"
     7  )
     8  
     9  // Webbrowser opens a URL with the default browser.
    10  func Webbrowser(u string) (err error) {
    11  	_, err = exec.Command("xdg-open", u).Output()
    12  	return
    13  }