Automatically open web browser on startup
This commit is contained in:
parent
e240f5dbd0
commit
4619bb5383
4
dau.go
4
dau.go
@ -22,6 +22,7 @@ import (
|
||||
|
||||
"github.com/fogleman/gg"
|
||||
"github.com/pborman/getopt"
|
||||
"github.com/skratchdot/open-golang/open"
|
||||
"golang.org/x/image/font/inconsolata"
|
||||
|
||||
"discord-auto-upload/web"
|
||||
@ -49,6 +50,9 @@ func main() {
|
||||
wconfig := web.Init()
|
||||
go processWebChanges(wconfig)
|
||||
|
||||
log.Print("Opening web browser")
|
||||
open.Start("http://localhost:9090")
|
||||
|
||||
checkUpdates()
|
||||
|
||||
log.Print("Waiting for images to appear in ", config.path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user