question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Netbeans icon on linux is doubled

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
PavelCibulkacommented, Jun 14, 2022

Yes, Apache-NetBeans-14-bin-linux-x64.sh from https://dlcdn.apache.org/netbeans/netbeans-installers/14/

0reactions
PavelCibulkacommented, Dec 6, 2022

It is fixed in Netbeans 16 DEB installer

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found