安装后,Dock 中的 OSX 应用程序快捷方式文件夹和图标更新

发布于 2024-10-08 15:07:24 字数 546 浏览 8 评论 0原文

设置如下:我的扩展坞中有一个应用程序文件夹,据我所知,这是安装后的默认文件夹(雪豹)。

现在我有一个自定义构建的 DMG,其中有一个应用程序,我可以将其拖放到应用程序文件夹中。当我从扩展坞打开“应用程序”文件夹并查找新安装的应用程序时,它没有应有的应用程序图标 - 它实际上显示了带有圆圈和线条的默认图标(铅笔/纸)。

在通过 Finder 打开的应用程序文件夹中,几秒钟后会显示该图标。

该应用程序也是定制构建的。它使用 info.plist 指定要使用的图标文件 - 该文件名为 cc.icns,位于 Contents/Resources 文件夹中。

我认为这可能是图标缓存的问题,可以通过注销/登录来解决 - 这是我不寻找的解决方案。据我所知,有些应用程序不存在此问题。 (对?错?)

对此有什么建议吗?

编辑:这是欺骗 https://apple.stackexchange.com/q/5161/2123 - 但我感觉这个论坛可能有更具技术性的解决方案;)

Here is the setup: I have the Applications folder right in the dock, which is the default after installation (Snow Leopard) afaik.

Now I have a custom build DMG with an application in there which I drag&drop into the Application folder. When I open the Application folder from the dock and look for the newly installed app, it does not have the application icon it should - it does in fact show the default icon (pencil/paper) with a circle and line through it.

In the Application Folder opened via the Finder shows the Icon after some seconds.

The App is custom build as well. It uses the info.plist to specify the icon file to be used - which is called cc.icns and located in the Contents/Resources folder.

I think this might be a problem with the icon cache and can be resolved by logout/login - a solution that I'm not looking for. Afaik there are apps that do not have this problem. (Right? Wrong?)

Any suggestions on this?

EDIT: This is dupe to https://apple.stackexchange.com/q/5161/2123 - but I feel like this forum might have a more technical solution ;)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

咿呀咿呀哟 2024-10-15 15:07:24

穿过应用程序图标的圆圈和线条对于新应用程序来说很常见,至少在您第一次运行它并确认要运行它之前是这样。

具有安装程序的应用程序已获得确认,因此无需执行额外的步骤。

如果您对应用程序进行协同签名,那么在您第一次运行它并确认您希望它运行后,只要签名相同,该应用程序在该计算机上的后续安装就不需要获得批准。

The circle and line through your app icon is usual with new applications, at least until you run it the first time and confirm that you want to run it.

Applications that have installers already get the confirmation so that they don't have to go through the extra step.

If you codesign your application, then after the first time you run it and confirm that you want it to run, subsequent installations of the application on that machine do not need to be approved, as long as the signature is the same.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文