Finder中的应用程序名称与终端中的应用程序名称不匹配 [英] App name in Finder not matching app name in Terminal
问题描述
在Finder中显示为 nwjs.app
,在终端中显示为 nw-demo.app
.
It's shown as nwjs.app
in Finder but nw-demo.app
in Terminal.
如果我使用 mv nw-demo.app nw-demo2.app
重命名应用程序,它将在Finder中正确显示.如果我随后使用 mv nw-demo2.app nw-demo.app
重命名它,它将再次显示为 nwjs.app
.奇怪.
If I rename the app using mv nw-demo.app nw-demo2.app
, it shows correctly in Finder. If I then rename it back using mv nw-demo2.app nw-demo.app
, it shows as nwjs.app
again. Strange.
名称应为 nw-demo.app
,这就是我想要的名称,但其名称为 nwjs.app
.我没有在 nw-demo.app/Contents/Info.plist
或任何将其设置为 nwjs
的地方看到任何东西.这是 Info.plist
:
The name should be nw-demo.app
, that's what I want, but it's nwjs.app
. I don't see anything in nw-demo.app/Contents/Info.plist
or anywhere that would set it to nwjs
. Here's the Info.plist
:
推荐答案
我要做的就是删除 nw-demo.app/Contents/Resources/*.lproj
.显然,这些文件用于国际化并影响显示名称.
All I had to do was delete nw-demo.app/Contents/Resources/*.lproj
. Apparently those files are used for internationalization and affect the display name.
这篇关于Finder中的应用程序名称与终端中的应用程序名称不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!