Files
streamed-tui/internal/browser.go
2025-11-22 21:15:27 -05:00

15 lines
257 B
Go

package internal
import (
"errors"
"os/exec"
)
// openBrowser tries to open the embed URL in the system browser.
func openBrowser(link string) error {
if link == "" {
return errors.New("empty URL")
}
return exec.Command("xdg-open", link).Start()
}