react-dev-utils openBrowser does not work from WSL when $BROWSER is a linux path
Created by: stephen-zhao
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.
This issue is for reference purposes.
sindresorhus/opn#117