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.

Chrome is always used, regardless of default browser

See original GitHub issue

openBrowser always attempts to open Chrome on macOS, even when Firefox is set as the default browser.

It does check the BROWSER env var, but given that this isn’t set by default when setting a default browser, it’s not authoritative. Instead, openBrowser assumes that if Chrome is open, it’s fine to use. For developers who have multiple browsers open, this is not the case, and the behaviour is confusing.

Instead, it would be great if the preferences could be checked first, perhaps using default-browser?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

nikolas2commented, Mar 9, 2018

Can we just turn off the open-in-browser automatically functionality? It doesn’t seem to add much value, and causes these annoyances. In my setup, npm run start opens my app in Firefox, while I actually use Chromium mainly for development. I’d be happy to submit a PR for this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix: Can't set Chrome as default browser Windows 10 - Appuals
Fix: Can't set Chrome as default browser Windows 10 · Solution 1: Setting the default program from Control Panel · Solution 2: Downloading...
Read more >
It's time to dump Chrome as your default browser on Android
Making the switch is quite simple. Open the Android Settings app and go to Apps | Default apps. In the resulting window (Figure...
Read more >
How to make Google Chrome your default browser everywhere
Make Google Chrome the default browser on your Android phone or tablet · Open your phone's settings. · Select Apps. · Click on...
Read more >
Make Chrome your default browser - Computer
Set Chrome as your default web browser. If you don't have Google Chrome on your computer yet, first download and install Chrome. Windows...
Read more >
Why do some links STILL open with Edge after setting my default
Hi Pete, Yes, this is by design. Windows always use Edge as the default browser when you use Cortana and windows search option....
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 Post

No results found

github_iconTop Related Hashnode Post

No results found