aboutsummaryrefslogtreecommitdiffstats
path: root/browser_linux.go
diff options
context:
space:
mode:
authorDave Cheney2014-07-10 17:18:52 +1000
committerDave Cheney2014-07-10 17:18:52 +1000
commitdc58c8f433c2ed2304866c4a44cd65f6c34456f6 (patch)
treea2d4e9546168c1c5c1d6cdb86a8a57bfc8b183ad /browser_linux.go
parentf87def9a79c9ed6b95eaf5f74f83bc5e68397709 (diff)
downloadbrowser-dc58c8f433c2ed2304866c4a44cd65f6c34456f6.tar.bz2
initial import
Diffstat (limited to 'browser_linux.go')
-rw-r--r--browser_linux.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/browser_linux.go b/browser_linux.go
new file mode 100644
index 0000000..e9e9b8c
--- /dev/null
+++ b/browser_linux.go
@@ -0,0 +1,10 @@
+package browser
+
+import (
+ "os/exec"
+)
+
+func openBrowser(url string) error {
+ cmd := exec.Command("xdg-open", url)
+ return cmd.Run()
+}