-
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dockutil 3 hangs #160
Comments
Thanks for reporting the issue. On which OS version(s) are you seeing the issue? |
Are you modifying sudoers or otherwise requiring a password for certain sudo commands? |
This particular example was on 13.6.4, but I've seen it on a range of macOS versions over the past couple of years. |
I've been looking into this a bit the past few days and of course I can't trigger it on demand. I did find that once the problem happens, the "solution" seems to be to manually edit the dock - drag something on or off, or move an item's location. If I kill the stuck dockutil process, the next time dockutil runs it works as expected. So I'm thinking maybe this is some kind of cfprefsd caching issue where defaults is blocking and can't read the plist. Or something. I'll try the recommend command once I can trigger this issue again |
We use dockutil with Munki. All of our app installs via Munki have a postinstall script that basically does the same thing:
This has worked for us for many years, since 2014, with various updates to dockutil over the years (thanks!). We've installed hundreds of apps and web shortcuts into the Docks of thousands of macs over the years.
But sometimes dockutil hangs and I've never been able to track down what the exact cause is.
For example I just created a simple shell script
and ran it and get this
That's it - it never finishes. It's stuck reading the dock somehow?
I stopped using allhomes a while back due to some oddbug, but if I try it with this
hangs in the same way:
I am using the recent 3.1.3 package and no change, this still happens
The text was updated successfully, but these errors were encountered: