3

I downloaded and installed Neatbeans 8.1 from the official site. Even if I tick Keep in Dock for the Netbeans icon, a new icon is generated every time I click on it. This new icon doesn't have the option to Keep in Dock, only Close.

I googled a bit and came to know about .desktop files in /usr/share/applications

However, there is no .desktop file for netbeans!

Help?

Update: I copied the .desktop file from ~/.local/share/applications to /usr/share/applications

I guess the only problem remaining is figuring out the WM_CLASS of Netbeans 8.1

But when I run this command:

xprop WM_CLASS

as suggested in the other question, it returns WM_CLASS: not found

So how to find that out?

1
  • I updated the question. Please check it out :)
    – Raj Mehta
    Commented Dec 10, 2015 at 6:41

1 Answer 1

3

Try StartupWMClass=NetBeans IDE 8.1

Source.

2
  • short, precise but works =)
    – Ravan
    Commented Dec 10, 2015 at 10:12
  • Just to clarify this should be added on a new line in the netbeans .desktop file found in ~/.local/applications or /usr/share/applications Commented Aug 5, 2019 at 6:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.