Many people will find Dock Master a good tool to distributing docks to users. If you would prefer to use Dockutil with Outset and a login-once (or login-every) script, you may run into this issue:
Items are added but not always removed
Workaround #1
kcrawford (developer of Dockutil) has a workaround for this:
while ! /usr/local/bin/dockutil –list | grep Messages
do
/bin/sleep 1
done
# actual dockutil dock modifications here
# /usr/local/bin/dockutil –add …
I’ve found that (at least in El Capitan), you can do fractions of seconds in sleep, so
works, and I’d recommend it. Either way, you may still have to wait a little bit before the Dock refreshes.
Workaround #2
I did quite a bit of experimenting (with the latest Dockutil and the latest El Capitan), and the way I got a login script with Dockutil to work is to
remove everything on the Dock, and then do individual additions
until you get to the last item and then do
This will refresh the Dock twice, but that seems to be what works. If you do a –no-restart after the first command, you may not get everything actually removed.
Leave a Reply