Commit f082f2e
committed
wsl: use wslview to launch browser in Windows from WSL
When installed inside of a Linux environment we typically look for a set
of utilities to open the user's preferred browser (xdg-open, gnome-open,
kfmclient).
However, if we are actually in a WSL (Windows Subsystem for Linux)
distribution, these utilties may not be/are not present. Instead we can
try and use the `wslview` utility that will launch the user's browser on
the _Windows host_.
Appending `wslview` to the list of utilities to open the browser means
no behaviour change for existing Linux users, but for WSL distros we now
have a chance to still open the browser.1 parent 1d668b1 commit f082f2e
File tree
1 file changed
+5
-1
lines changed1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
0 commit comments