Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #6675
Closed
Open
Issue created Mar 18, 2019 by Administrator@rootContributor

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

Assignee
Assign to
Time tracking