diff options
| author | Dave Cheney | 2014-07-10 17:18:52 +1000 |
|---|---|---|
| committer | Dave Cheney | 2014-07-10 17:18:52 +1000 |
| commit | dc58c8f433c2ed2304866c4a44cd65f6c34456f6 (patch) | |
| tree | a2d4e9546168c1c5c1d6cdb86a8a57bfc8b183ad /browser_linux.go | |
| parent | f87def9a79c9ed6b95eaf5f74f83bc5e68397709 (diff) | |
| download | browser-dc58c8f433c2ed2304866c4a44cd65f6c34456f6.tar.bz2 | |
initial import
Diffstat (limited to 'browser_linux.go')
| -rw-r--r-- | browser_linux.go | 10 |
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() +} |
