JDK-8119261 : Mac Glass: implement App name using bundle and -Xdock:name and -Xdock:icon
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: fx2.0
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2011-12-19
  • Updated: 2015-06-17
  • Resolved: 2011-12-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
fx2.1Fixed
Related Reports
Relates :  
Description
Implement app name using bundle info and -Xdock:name VM parameter

Also provide better impl for  -Xdock:icon since we'll be using the bundle info, which is all in the same code.

http://stackoverflow.com/questions/4217947/setting-process-name-on-mac-os-x-at-runtime
Comments
The supported mechanism on Mac for setting Mac icon/name is through bundle as any other native apps. -Xdock:name mechanism has security implications, which is being covered by RT-18693
03-04-2012

The -Xdock:icon does work as expected. However, the -Xdock:name doesn't seem to work. Gererad: please verify this and Close the issue if it's implemented as it's supposed to be.
03-04-2012

With a Bundle for app on Mac looking like: Application1.app Info.plist MacOS Application2 Resources MainMenu.nib and the Info.plist containing the following app name related keys: CFBundleExecutable [value: "Application2"] CFBundleIdentifier [value: "com.oracle.Application3"] CFBundleName [value: "Application4"] NSMainNibFile [value: "MainMenu"] We get a double clickable .app that shows: in Finder as "Application1.app" in Dock as "Application1" in Menubar as "Application4" And the app name as seen by APIs: [[NSProcessInfo processInfo] processName] returns "Application2" getprogname() returns "Application2"
19-12-2011