Skip to content

Opening URL does not work on Linux #1

@hmgle

Description

@hmgle

exec "open" command not work on Linux.

On Linux, we can use the alternative command xdg-open:

cmd := exec.Command("open", url)
if runtime.GOOS == "linux" {
    cmd = exec.Command("xdg-open", url)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions