Skip to content
This repository was archived by the owner on May 2, 2022. It is now read-only.

Commit 1de401b

Browse files
committed
add wslview provider, create setFlags function
1 parent edb03ec commit 1de401b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

browser_linux.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
)
77

88
func openBrowser(url string) error {
9-
providers := []string{"xdg-open", "x-www-browser", "www-browser"}
9+
providers := []string{"xdg-open", "x-www-browser", "www-browser", "wslview"}
1010

1111
// There are multiple possible providers to open a browser on linux
1212
// One of them is xdg-open, another is x-www-browser, then there's www-browser, etc.
@@ -19,3 +19,5 @@ func openBrowser(url string) error {
1919

2020
return &exec.Error{Name: strings.Join(providers, ","), Err: exec.ErrNotFound}
2121
}
22+
23+
func setFlags(cmd *exec.Cmd) {}

0 commit comments

Comments
 (0)