defaultbrowser icon indicating copy to clipboard operation
defaultbrowser copied to clipboard

Doesn't detect Chrome on macOS Catalina

Open mgol opened this issue 5 years ago • 5 comments

Ever since I updated to macOS Catalina (currently at 10.15.2 (19C57)) defaultbrowser stopped detecting Chrome if it's the currently active browser. It broke a script I use to toggle between Chrome (which I use at work) & Firefox (which I use at home) as a default browser.

If Firefox is the default, I get this:

$ defaultbrowser
  opera
  gif-brewery-3
  torbrowser
  beta
* firefox
  console
  canary
  dev
  firefoxdeveloperedition
  nightly
  chrome
  browser
  iterm2
  desktop
  chromium
  vivaldi
  safari
  27ef764e1843433bb31581d42d97c90c
  safaritechnologypreview

However, if Chrome is the default, I get this:

$ defaultbrowser          
  opera
  gif-brewery-3
  chrome
  beta
  torbrowser
  console
  canary
  dev
  firefoxdeveloperedition
  nightly
  firefox
  browser
  iterm2
  desktop
  chromium
  vivaldi
  safari
  27ef764e1843433bb31581d42d97c90c
  safaritechnologypreview

mgol avatar Jan 09 '20 22:01 mgol

I use defaultbrowser from Homebrew, fully updated.

mgol avatar Jan 09 '20 22:01 mgol

I'm not on Catalina yet. Once I'll get there I'll look into this.

kerma avatar Feb 02 '20 16:02 kerma

Same issue here but with Brave Browser on Big Sur

floq-design avatar Nov 21 '21 18:11 floq-design

The problem also present on Monterey (macOS 12) - I guess sort of stating the obvious

jonasbn avatar Mar 05 '22 09:03 jonasbn

For me, defaultbrowser browser works for Brave. Seems like its only using the last word of the app name as the Brave is called "Brave Browser" in /Applications.

pat-s avatar Jul 30 '22 23:07 pat-s