Skip to main content
Question

Launchctl and Dockutil

  • February 13, 2017
  • 3 replies
  • 24 views

Forum|alt.badge.img+8

Hey Everyone..

I am trying to write a persistent dock LaunchAgent. The LaunchAgent works great if you reboot - deletes all the items on the dock and puts back the ones that need to be there. However just logging out of the account and logging back in doesn't fix the dock, a reboot is needed. I tried unloading the LaunchAgent and logging back out and back into the account and still nothing. Any ideas?

Thanks!

3 replies

golbiga
Forum|alt.badge.img+21
  • Employee
  • February 13, 2017

I would recommend checking out Outset for this, https://github.com/chilcote/outset. You can set your dockutil script to run at login-every and on each login the dock will be set to how you want it.

Allen


Forum|alt.badge.img+10
  • New Contributor
  • February 13, 2017

+1 for Outset. We ran into similar problems you.


Forum|alt.badge.img+9
  • Valued Contributor
  • February 13, 2017

+1 for Outset as well. Login LaunchAgents seem unfortunately unpredictable.