Opens Chrome stable if Chrome Canary is running
See original GitHub issueDescription
npm start
opens wrong browser. I have both Chrome and Chrome Canary on my system, but I only use Canary (which is set as my default browser system-wide).
Expected behavior
npm start
should open my default browser.
Actual behavior
Ignores my default browser setting, and opens Chrome (stable).
Reproducible Demo
- Start Google Chrome Canary.app
- run
npm start
Cause of the bug
node_modules/react-dev-utils/openBrowser.js:
execSync('ps cax | grep "Google Chrome"');
grep incorrectly matches “Google Chrome Canary”. Probably the same error would happen with Beta.
execSync('ps cax | grep "Google Chrome$"');
seems to fix the problem (tested on OS X 10.11). Alternatively, pgrep -x "Google Chrome"
may give more precise result.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Chrome Canary Features For Developers - Google
Chrome is a fast, secure, free web browser. Nightly build for developers. Get on the bleeding edge of the web. Be warned: Canary...
Read more >Test Chrome browser channels - Google Support
You can run the Stable, Beta, Dev, and Canary channels of Chrome browser at the same time on Microsoft Windows and Apple Mac...
Read more >chrome/chromium/canary defaults (for opening web links) in ...
I want my autohotkey script to run chrome (stable build), not chromium ... the App Paths regardless of the stability of the channel...
Read more >What is Chrome Canary and Is It Safe? - Online Tech Tips
The Chrome Canary window will open, looking a lot like the stable version of Chrome, but with some minor differences, depending on any...
Read more >Which Chrome Process is running in Task Manager? Stable's ...
Finding Canary or Stable Process of Chrome on Task Manager to kill ... Right click on first Chrome process in task manager, and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, changing “Google Chrome” to “Chrome” in the applescript makes Canary reload the page as expected.
@n3tr Could this be a regression after https://github.com/facebookincubator/create-react-app/pull/1165? Can you check before and after?