diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2020-11-21 15:33:57 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2020-11-21 15:33:57 -0500 |
| commit | 36dc9ff10971cf97eb077907072c519cb5349fe4 (patch) | |
| tree | faf3ff607714ee8b155c801b91a04e2cc8cb2279 /cmd/web/windows.go | |
| parent | 4ed57528379c9d1ac0f5bc77b95439bbba3d4488 (diff) | |
| download | steam-export-36dc9ff10971cf97eb077907072c519cb5349fe4.tar.gz steam-export-36dc9ff10971cf97eb077907072c519cb5349fe4.tar.xz | |
Most of the functionality I want is there now, it's not pretty though.
Build the web server and the command line in the build script
Allow for deletion of games from the library
Move the download function out of main.go
Add more information to the index template and handler.
Allow for downloads from URLs and installation from local files.
Allow changing of the library path via a command line flag
Automatically start the web browser on windows
Diffstat (limited to 'cmd/web/windows.go')
| -rw-r--r-- | cmd/web/windows.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cmd/web/windows.go b/cmd/web/windows.go index 2effa08..9fe8ab6 100644 --- a/cmd/web/windows.go +++ b/cmd/web/windows.go @@ -2,4 +2,16 @@ package main +import ( + "os/exec" + "time" +) + var DefaultLib string = `C:\Program Files (x86)\Steam\steamapps` + +func startBrowser() { + time.Sleep(time.Second*3) + c := exec.Command("cmd", "/c", "start", "http://127.0.0.1"+Listen) + Logger.Println(c.Run()) +} + |
