From cce80f82766af3a22071287a0366ec95373564a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Wed, 6 May 2026 18:00:51 +0200 Subject: [PATCH] [client/ui-wails] Drop dead freebsd branches in services/connection.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The file's build constraint excludes freebsd, so the freebsd cases in IsUnixDesktopClient and OpenURL were unreachable — staticcheck (SA4032) fails the pre-push lint. Linux is the only Unix-desktop GOOS this package compiles for, so collapse both checks accordingly. Co-Authored-By: Claude Opus 4.7 (1M context) --- client/ui-wails/services/connection.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ui-wails/services/connection.go b/client/ui-wails/services/connection.go index 6be9e153f..84b4652ba 100644 --- a/client/ui-wails/services/connection.go +++ b/client/ui-wails/services/connection.go @@ -100,7 +100,7 @@ func (s *Connection) Login(ctx context.Context, p LoginParams) (LoginResult, err ManagementUrl: p.ManagementURL, SetupKey: p.SetupKey, Hostname: p.Hostname, - IsUnixDesktopClient: runtime.GOOS == "linux" || runtime.GOOS == "freebsd", + IsUnixDesktopClient: runtime.GOOS == "linux", } if profileName != "" { req.ProfileName = ptrStr(profileName) @@ -181,7 +181,7 @@ func (s *Connection) OpenURL(url string) error { return exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start() case "darwin": return exec.Command("open", url).Start() - case "linux", "freebsd": + case "linux": return exec.Command("xdg-open", url).Start() default: return fmt.Errorf("unsupported platform")