Making Chrome Default Browser Mac



  1. Make Chrome As My Default Browser Mac
  2. Make Google Chrome Default Browser
  3. How To Install Chrome As Default Browser
  4. Make Chrome Default Browser Mac

Mar 29, 2019 Download your preferred web browser. If you don't already have the web browser that you want to use installed on your Mac, you'll need to download it before proceeding: Google Chrome - Go to Chrome's download page and click the blue DOWNLOAD CHROME button. Firefox - Go to Firefox's download page and click the green Download Now button.

You would think it would be fairly simple to script changing the default browser to Chrome in macOS. It's not, as far as I can tell! I'd love to be corrected on this.

  1. To make Chrome the default browser, first of all, launch it. Click on the Chrome menu and select Preferences. On the web page that opens, scroll down until you see the 'Default browser.' Click 'Make default' and confirm. In the Firefox menu, click Preferences.
  2. If you make Chrome your default browser, any links that you click will open automatically in Chrome. Computer Android iPhone & iPad Set Chrome as your default web browser If you don't yet have.

Script that changes Launch Services

I wrote up a script that changes the default browser silently, but it works well only the first time you run it.

If you run it again to switch to another browser, you may have to reboot for the change to take effect. Sometimes changing the default browser through the GUI and then running the script again will have it work again.

Make Chrome As My Default Browser Mac

That means it's a bit messy. On the other hand, in terms of practical use, you're not likely to want to script changing the default browser multiple times on one machine—the whole point of scripting it is likely to just make an initial default the user can change later on her own should she choose to, and she can use the GUI to do that.

If you want to use this in conjunction with Outset but not have the settings change for existing users (only new ones), you can use this preinstall script to fake-run the login-once script for each existing user.

I think this is a great option (and not just because I worked hard on it), but I also outline below some other options.

cdef and defaultbrowser

Make Google Chrome Default Browser

cdef and defaultbrowser allow you to set the default browser. Unfortunately, as far as I can tell, all that does is pop up the regular GUI 'set default browser' dialogue: Again, if someone knows of a silent option I don't know about, please leave a comment below, and I'll update this entry.

Mac

How To Install Chrome As Default Browser

duti works great... but not for Chrome

In Using duti to script default applications for Macs, I detail the steps for using duti in general, which works great... in general. It just chokes on setting the default browser. If you try to use duti to set Chrome as the default browser:

com.google.chrome public.html all
com.google.chrome public.xhtml all
com.google.chrome http all
com.google.chrome https all
you will get the error:

Make Chrome Default Browser Mac

failed to set com.google.chrome as handler for public.html (error -54)