Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(cli): use rundll32 instead of cmd start on Windows (#1202)

mike.xu556c68292fb1
diff --git a/server/cmd/multica/cmd_auth.go b/server/cmd/multica/cmd_auth.go
index 47f794dea6..bedbfca72c 100644
--- a/server/cmd/multica/cmd_auth.go
+++ b/server/cmd/multica/cmd_auth.go
@@ -78,8 +78,8 @@ func openBrowser(url string) error {
cmd = "xdg-open"
args = []string{url}
case "windows":
- cmd = "cmd"
- args = []string{"/c", "start", "", url}
+ cmd = "rundll32"
+ args = []string{"url.dll,FileProtocolHandler", url}
default:
return fmt.Errorf("unsupported platform: %s", runtime.GOOS)
}