GitHub user mhalachev added a comment to the discussion: Upcoming macOS app 
icon changes

I tested removing both `-Xdock:icon` and `-Xdock:name` while retaining the 
original Swift → shell → Java launch chain. The IDE opens, but displays the 
default Java icon in the Dock (the Duke mascot).

To investigate, I used a small helper to query `NSBundle.mainBundle` and the 
icon-related `plist` keys inside the JVM, before NetBeans startup and again 
after 20 seconds.

With the original launch chain, the main bundle resolves to 
`Contents/Home/bin`, with identifier `net.java.openjdk.java` and neither 
`CFBundleIconFile` nor `CFBundleIconName` present. With the in-process 
prototype, it resolves to the outer NetBeans `.app`, with both icon keys 
present. The results remain unchanged after startup.

Removing both flags therefore wasn’t sufficient in this setup. Is there a way 
to preserve the existing launch flow while allowing macOS to use the app 
bundle’s native icon, or would this require coordinated changes to NBPackage 
and the NetBeans launcher?

P.S. The prototype also worked on an Intel Mac running Sequoia 15.7.2, 
displaying the expected legacy icon.

GitHub link: 
https://github.com/apache/netbeans/discussions/8671#discussioncomment-19950470

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to