Skip to content

Commit 1111d28

Browse files
committed
Don't use sensible-browser directly (linux)
`sensible-browser` blocks the current process and doesn't open the expected browser (using system vs user default). `xdg-open` is non-blocking, uses the user default browser, and falls back to using `sensible-browser`. See flynn/flynn#2125 (comment) Signed-off-by: Jesse Stuart <[email protected]>
1 parent 3bc3fa0 commit 1111d28

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

browser_linux.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
package browser
22

33
func openBrowser(url string) error {
4-
// try sensible-browser first
5-
if err := runCmd("sensible-browser", url); err == nil {
6-
return nil
7-
}
8-
// sensible-browser not availble, try xdg-open
94
return runCmd("xdg-open", url)
105
}

0 commit comments

Comments
 (0)