mirror of
https://github.com/docker/compose.git
synced 2025-07-23 05:34:36 +02:00
invoke browser with Run rather than Start, to get errors (on wsl no interop setup, and more generally if the browser app returns an error)
Signed-off-by: guillaume.tardif <guillaume.tardif@gmail.com>
This commit is contained in:
parent
909be662ee
commit
bb58290eeb
@ -102,13 +102,13 @@ func openbrowser(address string) error {
|
|||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "linux":
|
case "linux":
|
||||||
if isWsl() {
|
if isWsl() {
|
||||||
return exec.Command("wslview", address).Start()
|
return exec.Command("wslview", address).Run()
|
||||||
}
|
}
|
||||||
return exec.Command("xdg-open", address).Start()
|
return exec.Command("xdg-open", address).Run()
|
||||||
case "windows":
|
case "windows":
|
||||||
return exec.Command("rundll32", "url.dll,FileProtocolHandler", address).Start()
|
return exec.Command("rundll32", "url.dll,FileProtocolHandler", address).Run()
|
||||||
case "darwin":
|
case "darwin":
|
||||||
return exec.Command("open", address).Start()
|
return exec.Command("open", address).Run()
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("unsupported platform")
|
return fmt.Errorf("unsupported platform")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user