

Open a new Finder window and navigate to ~/Library/Preferences//. Once you have done that, open Composer and cancel out of the new package screen (Normal, New & Modified.) so that you are at the main composer window. Set Chrome to be the default browser either by using the System Preferences -> General pref pane, or by opening Chrome and setting Chrome as default. Unless someone has newer information, or another method to set the default browser without getting any pop-up dialogs, I'll just trudge forth with replacing the LaunchServices plist for the Take a VM, or a fresh machine, with just the OS, Chrome, and Composer added to it. Actually, I just packaged up the settings, so I could have used my preferred tool, Packages, but Composer was easier in this case. Unfortunately, to meet my first goal I had to do something I hate doing: capture the LaunchServices settings via Composer. I was able to accomplish the second by utilizing the Python script that came up with in his blog post How to stop first run messages in Google Chrome.

My goal was to do two things: 1) set Chrome as default, and 2) get rid of the welcome dialog and all other dialogs on the first run. I tried his script, ChromeDefaultBrowser.sh, but again, had no luck. Alan Siu had a good post over here about changing Launch Services, and at the bottom indicates that Google Chrome just cannot be changed. I found several articles talking about setting the default browser, including this discussion, but none of the methods worked.

defaultbrowser - works but pops up the "Are you sure you want to change from Safar" dialog.duti - received same "error -54" every time."/Applications/Google I just spent 4 days trying to set Chrome as default. But if the user uses Safari to access that web application, what is the point of setting Google Chrome as the default browser? We have a certain Web application that works better in Google Chrome versus Safari - so this is why I want to set the default browser. Here is another question whats the point of setting the default web browser? the user can use whatever browser they want !! we have Safari,Firefox and Google Chrome installed!! how would setting the default web browser help if a user prefers to use a different browser over the browser I want to set as default ? I scope it to a test group of 2 computers and I check system preferences -> general - Safari is still listed as the default web browser. I am trying your solution, using the below value to set the managed preferences -> internet configuration -> default web browser I know this post has been a few years now, but would your solution still work today? on Sierra ? wanting to set Google Chrome as the default browser?
