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.