Minor update to comment
This commit is contained in:
parent
7f83927fd2
commit
6c81dc291e
|
@ -8,7 +8,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func getBrowserCmd(url string) *exec.Cmd {
|
func getBrowserCmd(url string) *exec.Cmd {
|
||||||
// Check for Windows Subsystem for Linux (v2+).
|
// Check if wslview is available (Windows Subsystem for Linux).
|
||||||
if _, err := os.Stat("/usr/bin/wslview"); err == nil {
|
if _, err := os.Stat("/usr/bin/wslview"); err == nil {
|
||||||
return exec.Command("wslview", url)
|
return exec.Command("wslview", url)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue