Avatar of ctangent
ctangent
 asked on

How can I force the OS X Dock to reload an icon without using killall Dock?

If you change the icns file in an application via MyApp/Contents/Resources/app.icns the icon for MyApp updates in Finder immediately but the corresponding icon in the Dock does not.

How can I update the dock icon using the command line or Java code so that the new icon is used, without reloading the dock by the killall Dock command? Using killalll Dock makes it very visible.

Is there Dock cache somewhere I can clear, or something else I can do?

I have an installer for my application and the installer changes the icon but the dock icon doesn't change unless the user clicks on the dock icon.
Mac OS X

Avatar of undefined
Last Comment
ctangent

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
chapmanjw

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ctangent

ASKER
Thank you very much for the quick reply!
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23