Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Lubuntu 11.10. When I call the context menu (right click) many programs appear to open some file.

For example, for .tex files, besides TeXstudio and Leafpad, Gnumeric (what a strange option!) and text editor also appear.

So, I'd like to remove those bad options. For some extensions (.txt for example) I could remove the wrong programs by deleting the .desktop files somewhere in .config subfolders.

How should I do this?

share|improve this question
up vote 2 down vote accepted

Simple, copy files like /usr/share/applications/XX.desktop, to ~/.local/share/applications,

And remove the unnecessary mimetypes, from the Mimetype= line

(You might need to re-login, not sure if LXDE reloades them automatically)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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