重新启动/刷新 Dock - Killall Dock - 缓存
我制作了一个可以更改 OSX 垃圾箱图标的应用程序。但是,在替换了 .../CoreServices/Dock.app/Resources 中的图标 .png 文件后,在垃圾箱更改状态之前不会显示新图标(fx.empty -> full 或 full -> empty) 。我尝试过使用killall Dock、killall Finder来进行更改,但不起作用..我还阅读了有关删除Library/Caches/com.apple.dock中的dock缓存文件的信息...但我似乎看不到找到这个文件?
你能帮助我吗?
I've made an app which changes the OSX Trash icon. However after it has replaced the icon .png files in .../CoreServices/Dock.app/Resources it will not show the new icon before the Trash has changed state (fx. empty -> full or full -> empty). I've tried making the change appear by using killall Dock, killall Finder but not working.. I've also read about deleting a dock cache file in Library/Caches/com.apple.dock... But i can't seem to find this file?
Can you help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我实际上最终使用了 bash 命令
find 。 -名称 com.apple.dock.iconcache
。然后我删除了所有匹配项。它工作完美!I actually ended up using the bash command
find . -name com.apple.dock.iconcache
. Then I deleted all of the matches. It works perfectly!垃圾有两种状态。空垃圾箱和垃圾箱图标中的某些东西...您确定您已在程序的 plist 中更改了它们...!!如果你分别改变它们。我确信它会起作用...
哦,是的...您要查找的 plist 位于文件夹 /Users/(您的用户名)/Library/Preferences/com.apple.dock.....希望这会有所帮助
there are two states for trash. the empty trash and the something in it trash icon....are u sure u have changed BOTH of them in the plist in your program... !! if u change both of them separately . i m sure it will work...
oh yes...and the plist ur looking for is in the folder /Users/(your username)/Library/Preferences/com.apple.dock..... hope this helps