How to set app name in macOS, gradle?
Michael Hall
mik3hall at gmail.com
Thu Sep 17 19:55:14 UTC 2020
> On Sep 17, 2020, at 12:20 PM, Michael Paus <mp at jugs.org> wrote:
>
> You can achieve this when you bundle your application with jpackage.
With jpackage including these…
-Dapple.laf.useScreenMenuBar=true
-Dcom.apple.mrj.application.apple.menu.about.name=HalfPipe
My application name showed correctly on the top menu bar and in the dock.
Whether it was from these or just jpackage
--name -n <name>
Name of the application and/or package
I don’t know. What wasn’t showing correctly was the application names within the application menu. Like “About LoaderLaunchStub”
These looked like they were parsed from the main class name.
app.mainclass=us.hall.hp.common.LoaderLaunchStub
After seeing this thread I found this…
-Dapple.awt.application.name=HalfPipe
Which seems to correct that.
NSMenuFX may give you additional functionality you want but with just the above for jpackage should get you correct looking application names about everywhere.
More information about the openjfx-dev
mailing list