Netbeans icon on linux is doubled
See original GitHub issueDescription
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
- I agree to follow the Apache Software Foundation’s Code of Conduct
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to Avoid Duplicated Icons in Dash and Unity - Beamtic
Another cause for duplicated icons can be if you installed both the repository version ... Starting NetBeans still creates a duplicate icon.
Read more >Netbeans shows two icons on Launcher - Ask Ubuntu
I use netbeans in Ubuntu Natty. I have added it in the launcher and it works. But there is an issue. When I...
Read more >198639 – Mouse unusable in Gnome
It doesn't only happen with Netbeans, it happens with all swing apps, doesn't matter if you have double monitor or not. And it...
Read more >Java Illegal Exscape character in Icon path - Stack Overflow
1 Answer 1 · 4. or just use forward slashes, Windows doesn't care and it will work on any platform (OS X, Linux)....
Read more >314805 – [Win32] Eclipse icon is duplicated in taskbar - Bugs
I also have this problem. 64-bit version on Windows 7 It occurs if you pin Eclipse to the task bar. When running it,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, Apache-NetBeans-14-bin-linux-x64.sh from https://dlcdn.apache.org/netbeans/netbeans-installers/14/
It is fixed in Netbeans 16 DEB installer