PavelCibulka opened a new issue, #4221: URL: https://github.com/apache/netbeans/issues/4221
### Description When you add netbeans icon into favorite bar (Ubuntu 22.04 Gnome) you get icon to easily start netbeans. When you start netbeans with this icon, second icon will appear in favorite bar. This is due to icon file (**~/.local/share/applications/Apache NetBeans-14.desktop**) not havving StartupWMClass property. This can be easily fixed. (But I don't know, where is code for this icon in Netbeans source code). Adding **StartupWMClass=Apache NetBeans IDE 14** will fix this issue. Example of original **Apache NetBeans-14.desktop** file: ``` [Desktop Entry] Encoding=UTF-8 Name=Apache NetBeans IDE 14 Comment=The Smarter Way to Code Exec=/bin/sh "/home/pavel/netbeans-14/netbeans/bin/netbeans" Icon=/home/pavel/netbeans-14/netbeans/nb/netbeans.png Categories=Application;Development;Java;IDE Version=1.0 Type=Application Terminal=0 ``` Example of fixed version: ``` [Desktop Entry] Encoding=UTF-8 Name=Apache NetBeans IDE 14 Comment=The Smarter Way to Code Exec=/bin/sh "/home/pavel/netbeans-14/netbeans/bin/netbeans" Icon=/home/pavel/netbeans-14/netbeans/nb/netbeans.png Categories=Application;Development;Java;IDE Version=1.0 Type=Application Terminal=0 StartupWMClass=Apache NetBeans IDE 14 ``` ### Use case/motivation _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow the Apache Software Foundation's [Code of Conduct](https://www.apache.org/foundation/policies/conduct.html) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [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
