如何从WSL2启动Edge?

迈克马卡纳

我可以code从WSL2内部运行以启动VSCode。

我将如何启动Edge(当前基于Chromium的浏览器)?

我试过了:

~/Code/company/workshops-website$ cmd.exe /c 'start microsoft-edge:\\wsl$\Ubuntu\home\mike\Code\company\workshops-website\index.html'
'\\wsl$\Ubuntu\home\mike\Code\company\workshops-website'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.

它会启动Edge,但不会打开index.html(相反Edge会搜索它)

如何从WSL2内部启动Edge?

我很喜欢制作bash别名,函数等。

海登·巴恩斯(Hayden Barnes)

$ wslview index.html

将在Windows的默认浏览器中打开文件。

wslview打包在wslutilities中,该软件包预先安装在WSL和其他一些WSL发行版的Ubuntu上。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章