Posted on 12-04-2012 05:22 PM
I have a set of computers in a lab type of environment where I want the dock to be uniform on all machines and using my customizations.
I currently have a package created for the dock items, and the following script setup to delete the com.apple.dockfixup.plist file because I don't want Apple to add icons when the machines auto update. I run this script at startup.
#!/bin/bash
rm -rf /Library/Preferences/com.apple.dockfixup.plist;
Do any of you geniuses have a better way of handling this other than deleting the file on every startup?
Solved! Go to Solution.
Posted on 12-05-2012 02:01 PM
I deploy a custom dock.dmg file that was created in Composer. Afterwards I run a script that only wipes out the part of the dockfixup.plist file that tries to cram the Facetime and AppStore icons back in.
/usr/libexec/plistbuddy -c "delete:add-app" /Library/Preferences/com.apple.dockfixup.plist
I only do this one time per machine and any newly created profiles get the standardized dock.
This is for 10.7 machines BTW.
Posted on 12-06-2012 06:23 AM
I deploy a custom dockfixup.plist that has the Apple cruft removed from it. It survives OS updates.
Posted on 12-05-2012 01:19 PM
Should I assume the answer is no? lol
Posted on 12-05-2012 02:01 PM
I deploy a custom dock.dmg file that was created in Composer. Afterwards I run a script that only wipes out the part of the dockfixup.plist file that tries to cram the Facetime and AppStore icons back in.
/usr/libexec/plistbuddy -c "delete:add-app" /Library/Preferences/com.apple.dockfixup.plist
I only do this one time per machine and any newly created profiles get the standardized dock.
This is for 10.7 machines BTW.
Posted on 12-05-2012 08:13 PM
I only do this one time per machine
Doesn't the file get "fixed" after an OS update (say 10.8 to 10.8.2)? How do you handle that?
Posted on 12-06-2012 06:23 AM
I deploy a custom dockfixup.plist that has the Apple cruft removed from it. It survives OS updates.
Posted on 12-06-2012 07:22 AM
I didn't hear of any issues after upgrading from 10.7.4 to 10.7.5. Honestly I didn't even know it was a potential problem.
Posted on 12-10-2012 03:53 PM
We do something similar but instead of messing with a script we use a policy with the "Advanced" feature to look for a file and "Delete if found". It searches for /Library/Preferences/com.apple.dockfixup.plist and then deletes it. We make this policy ongoing and only at startup. If your system gets an update, it's going to require a reboot. If the dockfixup file gets created, this policy will do the trick.
10.7.3 to 10.7.5 definitely added this dockfixup file back into place.
Posted on 07-31-2013 01:32 PM
We do something similar but instead of messing with a script we use a policy with the "Advanced" feature to look for a file and "Delete if found". It searches for /Library/Preferences/com.apple.dockfixup.plist and then deletes it. We make this policy ongoing and only at startup.
This worked great, thanks
Posted on 08-05-2014 01:41 PM
@oopsydaisy @jarednichols this works well for me with <500 local accounts,. But doesn't work with AD Users. Any Idea why?
Posted on 08-05-2014 01:53 PM
@wmateo we use AD logins only (no local users) and have been deleting dockfixup from 10.7 to 10.9.x and it appears to fix the problem. Have you tried deleting the dockfixup plist file all together to see if it works? Also, are your AD user folders deleted at login/logout? If not, the Dock prefs have been stored with the dockfixup items. You can test this by creating a new local user or by logging in with an AD user that's never logged in before.
Posted on 08-05-2014 01:57 PM
@dilan I tested with a new user local, and the items are not there. I am going to test with a AD user that has never been logged in, after deleting file manually.
Posted on 08-05-2014 02:07 PM
@wmateo Sweet. I'm assuming it's the AD users that have logged in previous to you deploying the "dockfixup" fix having their prefs already saved in the dock.plist file. A couple suggestions to change current user docks is to delete their dock.plist and have it regenerate or deploy a policy with a specific dock.plist that has the icons you want the end user to see in their dock. You can also attempt to edit their current dock.plist. It just depends on how complicated you want to make it. I would recommend using a policy to set the Dock the way you want it and never think about it again.
Posted on 08-06-2014 06:55 AM
@dilan it turns out that the dockfixup file was still in the library, hence my script wasn't deleting it. I have since corrected and all is well with the world. Thanks for your response. I appreciate it.