Posted on 10-22-2014 12:11 PM
In previous version of OS X, I was able to edit the /Library/Preferences/com.apple.dockfixup.plist file to remove any persistent dock apps that I did not want in the dock for newly created users. Items like iBooks and Maps are not necessary for us.
In Yosemite, I no longer see the com.apple.dockfixup.plist file. It's replaced with a file called com.apple.dock.plist. When I look at that file, I see the following:
1 entry called: DesktopAdminImageGenerationNumber ( this is a Dictionary class)
It has another key called: GenerationNumger with a string of 2
Not sure what any of this means.
I also tried editing the default plist located in the dock application: System/Library/CoreServices/Contents/Resources/en.lproj/default.plist
Still no good. iBooks and Maps still show in the dock.
Any thoughts would be greatly appreciated.
Thanks
Keith
Solved! Go to Solution.
Posted on 10-25-2014 04:03 PM
Looks like they moved that file from /Library/Preferences to the path in the dock.app
I deleted the plist entries in the file you mentioned for iBooks and maps but it did not work. You also need to edit the defaults plist located in /System/Library/CoreServices/Dock.app/Contents/Resources/en.lproj/default.plist
A combination of both did the trick.
Thanks for the assist.
Keith
Posted on 10-22-2014 12:34 PM
Have you tried configuring Dock Items under Management Settings and then creating a policy that points to that dock item?
This is how I would do it:
• I go to Management Settings and click Dock Items
• Create the Dock Item(s) (for example, I use one for an application called Inspiration 9)
• I use this for the path: file://localhost/Applications/Inspiration 9.app/
Once the dock item is created, I then create a policy and I categorize this under a Dock Items category. When you edit the policy, you can choose to add Dock Items and choose the action for them (add to beginning of dock, end of dock, or remove from dock) and just point it to whatever smart computer group you want to scope it to.
Hope this is what you're looking for.
Posted on 10-22-2014 12:37 PM
Marlin,
I appreciate the prompt reply. I was hoping to do this without the use of a policy like I've done in the past.
I appreciate your insight and that may be my plan B.
Thanks
Keith
Posted on 10-22-2014 12:39 PM
Sure, not a problem. I just find it to be the quickest method to use dock items because I can either remove icons as a one time operation via Casper Remote or have it ongoing in a policy, as well as map dock icons one time or ongoing.
Good luck!
Posted on 10-22-2014 01:02 PM
Hey take a look at this slide
http://grahamgilbert.com/images/posts/2014-07-10/Automate_yourself_out_of_a_job.pdf
Posted on 10-22-2014 01:09 PM
hcodfrie,
I thought of using dockutil as well. I'm just curious as to what changed in Yosemite. More and more items are stored in databases these days.
Thanks for your reply.
Keith
Posted on 10-22-2014 04:37 PM
+1 for dockutil
super easy to use and you can use the same script across multiple OS versions so you don't have to worry about when you move to yosemite for example, you just deploy the same script you were using in 10.9 ;) And no hacking of the system files or user template
Posted on 10-25-2014 02:21 PM
@kmitnick, do you try deleting: /System/Library/CoreServices/Dock.app/Contents/Resources/com.apple.dockfixup.plist
Posted on 10-25-2014 04:03 PM
Looks like they moved that file from /Library/Preferences to the path in the dock.app
I deleted the plist entries in the file you mentioned for iBooks and maps but it did not work. You also need to edit the defaults plist located in /System/Library/CoreServices/Dock.app/Contents/Resources/en.lproj/default.plist
A combination of both did the trick.
Thanks for the assist.
Keith
Posted on 10-28-2014 10:33 AM
in very quick testing if you make the dock the way you want it, copy your local dock plist to the above mentioned default.plist that should take care of it as well.
Posted on 10-30-2014 07:39 AM
Running these two commands should just remove all the unnecessary dock items. I didn't have to change the default.plist to remove iBooks and Maps.
/usr/libexec/PlistBuddy -c "delete:add-app" /System/Library/CoreServices/Dock.app/Contents/Resources/com.apple.dockfixup.plist
/usr/libexec/PlistBuddy -c "delete:add-doc" /System/Library/CoreServices/Dock.app/Contents/Resources/com.apple.dockfixup.plist
Allen
Posted on 10-30-2014 12:30 PM
Posted on 11-11-2014 12:28 PM
/usr/libexec/PlistBuddy -c "delete:add-app" /System/Library/CoreServices/Dock.app/Contents/Resources/com.apple.dockfixup.plist
/usr/libexec/PlistBuddy -c "delete:add-doc" /System/Library/CoreServices/Dock.app/Contents/Resources/com.apple.dockfixup.plist
@golbiga, when would you execute this command? I attempted to run this from an admin account and then created a new user, no dice. The default dock still got added to a new user.
Joe
Posted on 11-11-2014 02:18 PM
Nevermind, I tried it on a different computer and saw it was modifying the proper file. For me, deleting the /System/Library/CoreServices/Dock.app/Contents/Resources/en.lproj/default.plist
seemed to create a blank Dock which is exactly what I was looking for.
Joe