作为其他用户安装的 py2app 缺少图标

发布于 2024-12-23 01:59:26 字数 268 浏览 3 评论 0原文

我正在使用 py2app 和包生成器来安装 python 程序。我遇到的问题是,如果我作为一个用户安装,选择“为所有用户安装”,然后切换到其他用户,则应用程序的图标丢失 - 我只是得到一个空白孔,但其他一切都工作正常。我想知道这是否是权限问题,但我在 Contents/Resources 的包中找到的唯一 icns 文件是 775。这是应用程序使用的文件吗?

很难提供有关此问题的大量信息,但希望有人以前遇到过此问题,或者对为什么图标可能会丢失提出建议

I'm using py2app and package maker to install a python program. The issue I'm having is that if I install as one user selecting 'install for all users' and then switch to a different user the icon for the app is missing- I just get a blank hole, but everything else works fine. I wondered if it was a permissions issue but the only icns file I can find in the package in Contents/Resources is 775. Is this the one that is used by the app?

It's hard to give a lot of information on this but hopefully someone has come across this before or has a suggestion as to why the icon might be missing

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

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

发布评论

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

评论(1

递刀给你 2024-12-30 01:59:26

是由于 plist 文件损坏造成的。删除 ~/Library/Preferences/com.apple.dock.plist 并再次登录后,它起作用了

Was due to a corrupted plist file. After removing ~/Library/Preferences/com.apple.dock.plist and logging in again it worked

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