Profile Manager: Set default browser on managed Macs

Running Server.app on OS X 10.10.5. Things are going generally great. But there are two items that, for the life of me, I can't find a .plist for:


  1. Default browser.
  2. Toggling natural scrolling.

We use Chrome, often from the Guest account, so it's annoying to always tell the Mac "Yes, make Chrome my default" again and again.


And most of my coworkers and students dislike "natural scrolling" so I want it off by default.


Google has failed me. Any help is appreciated.

Mac mini, OS X Yosemite (10.10.5), null

Posted on Mar 9, 2016 3:14 PM

Reply
4 replies

Mar 10, 2016 6:26 AM in response to jeffzimmm

If you are using the Guest account, you are generating a home folder on each login and destroying it on each logout. Why not just customize the user template to contain the values you want to push? Otherwise, you are generating custom profiles that may be tricky to construct.


The setting for default browser is stored in:


~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.p list


Since the syntax of this file is a bit funky, I suggest creating the file the way you want and then copy the plist to the user template. For example, create an account on a machine. Let's say the account is jeff. You can use this command once the file is created containing your default browser settings:


sudo cp -R /Users/jeff/Library/Preferences/com.apple.LaunchServices /System/Library/User\ Template/English.lproj/Library/Preferences/


This copies the entire com.apple.LaunchServices folder into the template's Preferences folder.


As for scroll direction, this is set in the invisible .GlobalPreferences.plist file. The key is com.apple.swipescrolldirection and you can set this value in the user template, allowing all guest instances to inherit the setting. A sample command is:


sudo defaults write /System/Library/User\ Template/English.lproj/Library/Preferences/.GlobalPreferences.plist com.apple.swipescrolldirection -bool FALSE


If I recall, this one value will work for both a trackpad and a magic mouse.


Hope this helps.


Reid

Apple Consultants Network

Author - "El Capitan Server – Foundation Services"

Author - "El Capitan Server – Control & Collaboration"

Author - "El Capitan Server – Advanced Services"

:: Exclusively available in Apple's iBooks Store

Mar 10, 2016 7:47 AM in response to jeffzimmm

I will admit, even with DEP, VPP, JAMF, and configuration profiles, I still find customization of the user template to be necessary in many deployments. Especially for guest accounts.


I have a deployment at a school that sounds similar to what you are doing. They have 140 shared Airs on carts. There is no server infrastructure and all academic tools are web based so there is no unique home folders and no local persistent data. In this case, customization of the user template was the way to go. Each login copies the template, ensuring a consistent user experience. If I need to change a setting, I simply push a command or package to each machine. The next login by a guest user gets the changes.


Glad to assist.

Mar 10, 2016 12:56 PM in response to Strontium90

Unfortunately, it appears that later versions of OS X have a different method of storing the default browser that is not accessible via the Preferences directly (or any command-line means, actually). I found a couple of articles about this--it's a security measure meant to prevent browser hijacking.



The only solution I found was a command-line utility called defaultbrowser. https://github.com/kerma/defaultbrowser But unfortunately, there is an unavoidable popup that occurs when it is used. So it looks like there's no good option, really. Oh well.


EDIT: Never mind, I'm wrong. I just needed to reboot (logging off and back in wasn't enough).

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Profile Manager: Set default browser on managed Macs

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.