question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Opens Chrome stable if Chrome Canary is running

See original GitHub issue

Description

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

  1. Start Google Chrome Canary.app
  2. 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:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
kornelskicommented, Dec 9, 2016

Yes, changing “Google Chrome” to “Chrome” in the applescript makes Canary reload the page as expected.

1reaction
gaearoncommented, Dec 8, 2016

@n3tr Could this be a regression after https://github.com/facebookincubator/create-react-app/pull/1165? Can you check before and after?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found