Application name in About, Hide, and Quit menu items

Sean Reilly sreilly at seanreilly.com
Fri Aug 1 16:29:15 UTC 2014


Hi Hendrik,

In my app bundle ant file I’ve set a few options with the <bundleapp> tag including these:
          <option value="-Dcom.apple.mrj.application.apple.menu.about.name=${bundle.name}"/>
          <option value="-Dapple.awt.application.name=${bundle.name}"/>

Maybe they will help in your case?

I agree that it would make sense to use the bundle name, at least as a default.  If you get a chance to correct it, please feel free to fork it and send a pull request: http://bitbucket.org/infinitekind/appbundler

Cheers,
Sean


> Hi,
> 
> I'm bundling my app using the InfiniteKind AppBundler, which works great.
> 
> There is just a little discrepancy, I'm wondering about how to get rid off.
> 
> The application menu (right next to the Apple menu) is named the way I want it - not sure whether this is the app bundle's name or the CFBundleName from the Info.plist. Both are the same and that's fine.
> 
> However, in the application menu there are the items "About <APPNAME>", "Hide <APPNAME>", and "Quit <APPNAME>".
> All of them are not set to the bundle name, but to the main classname. So the application menu looks like this:
> 
> [BundleName]
> [About Classname]
> [Hide Classname]
> ...
> [Quit Classname]
> 
> In my case BundleName and Classname are not identical.
> 
> I'm under the impression that the classname is set by the JVM, as only the fully qualified classname is passed into jli_LaunchFxnPtr. The bundle name on the other hand, seems to be set some other way.
> 
> Is there a way to make sure that the About, Hide, and Quit menu items are also set to the bundle name, without having to change the classname?
> 
> Or in other words: wouldn't it make sense, to always make sure that the appname used in About, Hide, and Quit matches the name of the Application menu, i.e. the bundle name?
> 
> Cheers,
> 
> -hendrik



--
Sean Reilly
infinitekind.com






More information about the macosx-port-dev mailing list