Start browser on server start (#1832)

* Start browser on server start
* Add config option for opening browser
This commit is contained in:
kermieisinthehouse
2021-10-28 16:19:23 -07:00
committed by GitHub
parent 29b14ab4fc
commit 87036a07bc
24 changed files with 356 additions and 2 deletions

14
vendor/github.com/pkg/browser/browser_freebsd.go generated vendored Normal file
View File

@@ -0,0 +1,14 @@
package browser
import (
"errors"
"os/exec"
)
func openBrowser(url string) error {
err := runCmd("xdg-open", url)
if e, ok := err.(*exec.Error); ok && e.Err == exec.ErrNotFound {
return errors.New("xdg-open: command not found - install xdg-utils from ports(8)")
}
return err
}