I have a duplication of NetBeans for .desktop . I cannot find where these .desktop files are, I have searched for them using the GUI file explorer and cannot find them. And yes, I have looked in /usr/share/applications and i still cannot find them there. I have uninstalled NetBeans and reinstalled it, however the .desktop entry is still there? Is there anyway to remove 2 and keep the proper one?3 NetBean .desktop entries


Check within ${XDG_DATA_HOME}, ${XDG_DATA_DIRS}

Per the XDG Spec § Environment Variables these will be set to ~/.local/share, /usr/local/share, and /usr/share if not specified. Within each those directories, you should see an applications folder.


Checking within

  • ~/.local/share/applications
  • /usr/local/share/applications

would likely show these up, I'd guess.


Or else

sudo find / -name *.desktop | grep -i netbeans

If they are anywhere else.

  • or sudo find / -name '*.desktop' -iname '*netbeans*' if you have GNU find and would like to do it all in one command – Jeff Schaller Nov 18 '17 at 13:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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