It's easy to lock the dock so that it can't be changed. Go to ~/Library/Preferences. Select com.apple.dock.plist and select Show Info (command I) and check Locked. Now, even though you can still change the dock (position, items, size, etc.), if you log-out then log-in your dock will be restored!
•
[4,874 views]

