diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2021-08-02 20:10:23 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2021-08-02 20:10:23 -0400 |
| commit | a5a49ff08056a67cc57435f219aa157342a0d9a0 (patch) | |
| tree | 51ee855413f91c68fac91e6bd62271e1752afd55 /cmd/web/startBrowser.go | |
| parent | 50da303c65674d076b3ea2e9c2fee20dbc7c277c (diff) | |
| download | steam-export-a5a49ff08056a67cc57435f219aa157342a0d9a0.tar.gz steam-export-a5a49ff08056a67cc57435f219aa157342a0d9a0.tar.xz | |
Compatibility with MacOS. Starting browsers is now a bit simplier on each platform.
Diffstat (limited to 'cmd/web/startBrowser.go')
| -rw-r--r-- | cmd/web/startBrowser.go | 13 |
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 +} |
