Making Chrome the Default Browser in 10.15

cjkelley
New Contributor

Has anyone had any luck finding a way to make Chrome the default browser automatically for all users? We're using Catalina (10.15). The closest thing I have been able to do is just block Safari notifications asking to be the default browser once the user switched to Chrome. Thanks!

10 REPLIES 10

easyedc
Valued Contributor II

Setting the default browser lives in the user space and Apple took control over that away years ago.  'Cause Apple.  It's not impossible, but it's not easy.  Some folks have had success in the past trying to use tools like launchsetter or duti but I'll be honest, that may not be easy. Check out the blog post here - https://technology.siprep.org/script-making-chrome-the-default-browser-on-macos/ - that might get you going in the right direction. 

 

Do you have Apple Enterprise support? Ask them for an official "Apple" way and when they come back and say it can't be managed, give them proper feedback. Also - check out this post here - https://community.jamf.com/t5/jamf-pro/setting-default-browser-in-mojave-to-something-other-than-saf... - a few folks have posted a few different options, but they are a few years old, no guarantee they still work. 

targendaz
New Contributor II

I built this a while back to do exactly what you're trying to do: https://github.com/targendaz2/Mac-Set-Default-Apps

Hi @targendaz Thanks for the info, It helps a lot!
can you please explain a little more about the flow of distribution through Jamf (as a script),
About the msda set [-h] [-feu] [-fut] [-e EXTENSION ROLE] [-p PROTOCOL] [-u UTI ROLE] app_id
I try to set Google Chrome as the default web browser.
Thanks

targendaz
New Contributor II

Absolutely! The app’s readme covers using it as a Jamf script, but if you let me know where you’re running into trouble, I can point you in the right direction.

Blaban278
New Contributor

I created new policy, added the script (Set the JAMF variable to True in the User-Editable Settings section)
and the command -h --version Parameter 4 text in the policy.
About the Set command, Where it should be done? 

msda set com.google.chrome -p http -p https -u public.url all -u public.html viewer -u public.xhtml all -fut
Thanks

targendaz
New Contributor II

Parameter 4 of the script in the policy would be:

set com.google.chrome -p http -p https -u public.url all -u public.html viewer -u public.xhtml all -fut

Optionally, you can add -feu to that if you want the default browser to be Chrome for existing users as well.

Blaban278
New Contributor

Thank you very much I will try this out!

Blaban278
New Contributor

@targendaz I get this error - Service exited due to SIGKILL | sent by mds
do you familiar with it?
 

targendaz
New Contributor II

@Blaban278 I’d need more context to know what happened. Why don’t you open an issue on the app’s GitHub page. I’ll follow up there rather than monopolizing this thread.

Nick1403
New Contributor III

thank you for sharing, @targendaz!
That's what I've been looking for. 
it works wonderfully on macos 11.5.1 & M1 and 11.4.0 & Intel.

I put the script in the same policy as the Google Chrome Self Service Installation.
Parameter 4 is: set com.google.chrome -p http -p https -p mailto -u public.url all -u public.html viewer -u public.xhtml all -fut