Skip to content

Commit

Permalink
seva-launcher: Update launch command
Browse files Browse the repository at this point in the history
Signed-off-by: Chirag Shilwant <[email protected]>
  • Loading branch information
cshilwant committed Feb 21, 2024
1 parent c42ec17 commit 5fcd7d1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion seva-launcher/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ require (
github.com/gorilla/mux v1.8.0 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/melbahja/got v0.7.0 // indirect
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 // indirect
)
2 changes: 0 additions & 2 deletions seva-launcher/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWm
github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
github.com/melbahja/got v0.7.0 h1:YHbiuNZVS8fIkyV0iXyThQQliwlKZb5h4k80zBVovxg=
github.com/melbahja/got v0.7.0/go.mod h1:27cUstWCEfj6HBESMTGzCFY24Qj+QNMWot3+KuxguQU=
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 h1:JIAuq3EEf9cgbU6AtGPK4CTG3Zf6CKMNqf0MHTggAUA=
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966/go.mod h1:sUM3LWHvSMaG192sy56D9F7CNvL7jUJVXoqM1QKLnog=
4 changes: 2 additions & 2 deletions seva-launcher/seva-launcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"syscall"

"github.com/gorilla/mux"
"github.com/skratchdot/open-golang/open"
)

//latest-tag for seva-browser
Expand Down Expand Up @@ -81,7 +80,8 @@ func launch_browser() {
if *docker_browser {
go launch_docker_browser()
} else {
err := open.StartWith("http://localhost:8000/#/", "/usr/bin/chromium --no-sandbox")
cmd := exec.Command("su", "weston", "-c", "/usr/bin/chromium", "http://localhost:8000/#/")
_, err := cmd.CombinedOutput()
if err != nil {
log.Println("Host browser not detected, trying to load & launch seva-browser packaged in default image")
go launch_docker_browser()
Expand Down

0 comments on commit 5fcd7d1

Please sign in to comment.