aboutsummaryrefslogtreecommitdiff
path: root/cmd/web/startBrowser.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web/startBrowser.go')
-rw-r--r--cmd/web/startBrowser.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/cmd/web/startBrowser.go b/cmd/web/startBrowser.go
new file mode 100644
index 0000000..0184055
--- /dev/null
+++ b/cmd/web/startBrowser.go
@@ -0,0 +1,13 @@
+package main
+
+import (
+ "os/exec"
+)
+
+func startBrowser(url string) {
+ command := BrowserCommand(url)
+
+ c := exec.Command(command[0], command[1:]...)
+ Logger.Printf("Running command: %s result: %v", command, c.Run())
+ return
+}