我可以运行 code
从 WSL2 内部启动 VSCode。
我将如何启动 Edge(当前基于 Chromium 的 Edge)?
我试过了:
~/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 别名、函数等。
最佳答案
$ wslview index.html
将在 Windows 上的默认浏览器中打开文件。
wslview 打包在 wslutilities 中,它预装在 WSL 和其他一些 WSL 发行版上的 Ubuntu 上。
关于microsoft-edge - 如何从 WSL2 启动 Edge?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61686075/