[client] Allow freebsd to build netbird-ui (#3212)

This commit is contained in:
Viktor Liu
2025-01-20 11:02:09 +01:00
committed by GitHub
parent 9f4db0a953
commit c619bf5b0c
5 changed files with 36 additions and 14 deletions

View File

@ -1,4 +1,4 @@
//go:build !(linux && 386) && !freebsd
//go:build !(linux && 386)
package main
@ -876,7 +876,7 @@ func openURL(url string) error {
err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start()
case "darwin":
err = exec.Command("open", url).Start()
case "linux":
case "linux", "freebsd":
err = exec.Command("xdg-open", url).Start()
default:
err = fmt.Errorf("unsupported platform")