WSL:如何从 WSL 上的 linux 系统的命令行 运行 浏览器 windows
WSL: How to run browser on the windows from command line of the linux system on WSL
我正在尝试在 WSL 上使用 WebAssembly 和 Emscripten(Windows Linux 的子系统)。从命令行尝试 emrun [name].html
到 运行 示例 HTML 文件会导致错误:
Unable to find browser "firefox"! Check the correctness of the passed --browser=xxx parameter!
如何从 Linux 系统 (Ubuntu) 上的 WSL 命令行访问主机 (windows) 浏览器?
一旦您知道 exe 的路径,您就可以从 bash 本地操作 Windows 中的 exe 文件。以Chrome为例:
"/mnt/c/Program Files (x86)/Google/Chrome/Application/"chrome.exe
一旦知道 exe 的路径,就可以对 Firefox 执行完全相同的操作。
请注意处理程序文件 (x86) 中空格和 opening/closing 括号的引号
您需要为 wsl 安装 Firefox...
我正在尝试在 WSL 上使用 WebAssembly 和 Emscripten(Windows Linux 的子系统)。从命令行尝试 emrun [name].html
到 运行 示例 HTML 文件会导致错误:
Unable to find browser "firefox"! Check the correctness of the passed --browser=xxx parameter!
如何从 Linux 系统 (Ubuntu) 上的 WSL 命令行访问主机 (windows) 浏览器?
一旦您知道 exe 的路径,您就可以从 bash 本地操作 Windows 中的 exe 文件。以Chrome为例:
"/mnt/c/Program Files (x86)/Google/Chrome/Application/"chrome.exe
一旦知道 exe 的路径,就可以对 Firefox 执行完全相同的操作。
请注意处理程序文件 (x86) 中空格和 opening/closing 括号的引号
您需要为 wsl 安装 Firefox...