浏览代码

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 <[email protected]>
guillaume.tardif 5 年之前
父节点
当前提交
bb58290eeb
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      aci/login/helper.go

+ 4 - 4
aci/login/helper.go

@@ -102,13 +102,13 @@ func openbrowser(address string) error {
 	switch runtime.GOOS {
 	case "linux":
 		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":
-		return exec.Command("rundll32", "url.dll,FileProtocolHandler", address).Start()
+		return exec.Command("rundll32", "url.dll,FileProtocolHandler", address).Run()
 	case "darwin":
-		return exec.Command("open", address).Start()
+		return exec.Command("open", address).Run()
 	default:
 		return fmt.Errorf("unsupported platform")
 	}