Is the macOS option -Xdock:name only for AWT/Swing apps?

Scott Palmer swpalmer at gmail.com
Wed Apr 14 03:45:10 UTC 2021


Quick question is to macOS -specific option for the standard ‘java’ launcher:

-Xdock:name=<application name>
                      override default application name displayed in dock

supposed to work for Java FX applications?

Because it doesn’t.  At least I’ve never seen it work.

I know that the name in the dock doesn’t actually get changed.. I’ve looked at this bug report https://bugs.openjdk.java.net/browse/JDK-8173753 <https://bugs.openjdk.java.net/browse/JDK-8173753>

But the last comment on the bug explicitly states that the “-Xdock:name is still able to change title in menubar.” will change, and it doesn’t.  If it can’t, then the entire option makes no sense and shouldn’t be listed as an option.

I know the “right” thing to do is to get a proper experience is to use jpackage to get a “real” application, but it’s been bugging me that the -Xdock:name option is there and doesn’t do anything.


Regards,

Scott



More information about the openjfx-discuss mailing list