github.com/drycc/workflow-cli@v1.5.3-0.20240322092846-d4ee25983af9/pkg/webbrowser/webbrowser_linux.go (about) 1 //go:build linux 2 // +build linux 3 4 package webbrowser 5 6 import ( 7 "os/exec" 8 ) 9 10 // Webbrowser opens a URL with the default browser. 11 func Webbrowser(u string) (err error) { 12 _, err = exec.Command("xdg-open", u).Output() 13 return 14 }