Posted on 03-13-2024 10:01 AM
Hi
I have seen a number of post on here around people woes with customising docks using dockutil and the reliablitiy off it.
I have been trying to use outset https://github.com/macadmins/outset to help with getting it lauch better. I have got my dockutil script into the login once folder but nothing happens.
Has anyone doing something smiliar and shed any light where I might be going wrong.
Thanks
Posted on 03-13-2024 10:40 AM
I think your issue may have to do with Apple's decision to limit the launchctl kickstart option on certain system services. I noticed an issue with my deployment workflow that also utilizes Dockutil. I haven't looked at the Dockutil code to verify whether it's utilizing kickstart option or not. But it's a reasonable guess that it may be. You may need to open an issue on the Dockutil GitHub page.
Posted on 03-13-2024 10:50 AM
I looked at the code, and there is a function defined in the Dock.swift module called kickstart that does use the launchctl kickstart option to restart the dock. That function will need to be changed to utilize the kill command as Apple suggests rather than the launchctl kickstart option.
03-14-2024 01:59 AM - edited 03-14-2024 02:00 AM
does appear that its been updated in a recent release https://github.com/kcrawford/dockutil/issues/162
Will do some testing with 3.1.3