You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In WSL, despite using a Windows binary browser, my $BROWSER environment variable is set to its *nix path /mnt/d/Program Files (x86)/Google/Chrome/Application/chrome.exe as opposed to its Windows equivalent of D:\Program Files (x86)\Google\Chrome\Application\chrome.exe. This causes openBrowser (from react-dev-utils) to fail.
I noticed that openBrowser makes a call to opn where the root issue actually occurs. So to solve this more generically, I decided to open an issue at their repo as well, where I hope to be submitting a PR soon.
The text was updated successfully, but these errors were encountered:
stephen-zhao
changed the title
react-dev-utils openBrowser does not work from WSL when $BROWSER is set with a linux path
react-dev-utils openBrowser does not work from WSL when $BROWSER is a linux path
Mar 18, 2019
Version 6.0.0 of the package was just released, which includes the necessary changes. The name of the package has changed from 'opn' to 'open', so careful with that.
In WSL, despite using a Windows binary browser, my
$BROWSER
environment variable is set to its *nix path/mnt/d/Program Files (x86)/Google/Chrome/Application/chrome.exe
as opposed to its Windows equivalent ofD:\Program Files (x86)\Google\Chrome\Application\chrome.exe
. This causes openBrowser (from react-dev-utils) to fail.I noticed that openBrowser makes a call to
opn
where the root issue actually occurs. So to solve this more generically, I decided to open an issue at their repo as well, where I hope to be submitting a PR soon.This issue is for reference purposes.
sindresorhus/open#117
The text was updated successfully, but these errors were encountered: