Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 have one problem. Just look at image: My Problem

So I want to remove one of Dev-C++ IDE and Microsoft Visual Studio Version Selector (I've tried to install Microsoft Visual Studio and it doesn't works,and one of the Dev-C++ IDE too). But I don't know how to change that list. I am using Ubuntu 11.10.

share|improve this question
up vote 7 down vote accepted

Enter the contextual menu of the file and go to the Properties of it. Then, go to Open with tab, right click on the application you want to remove and click on Forget association.

share|improve this answer
thanks a lot,it works!!! – geoh Mar 25 '12 at 8:35
This does not work for wine applications. – To Do Nov 17 '12 at 16:09
@To Do, this may help you:… – Alfredo Hernández Nov 25 '12 at 22:09
There is no Forget association button in Ubuntu 14.04 (or I can't find it) – becko Mar 13 '15 at 20:33
@becko I don't know what kind of patched version does Ubuntu use of nautilus. But the Forget association is definitely there in Nautilus 3.12/3.14. Are you sure you are right clicking into the application you want to forget? – Alfredo Hernández Mar 13 '15 at 20:47

Goto ~/.local/share/applications, edit the file mimeapps.list:

In [Added Associations] section, you will find your file extension, something like this:

application/epub=FBReader.desktop;<another apps.desktop>

Which means there are two apps will be shown in "Open with..." menu when right click an epub file, identify the one for Dev-C++ IDE in your case and remove it.

share|improve this answer
Thank you. This helped me remove the Wine Internet Explorer/notepad/wordpad options from my "open with" list. Just go to that folder and delete all the wine-extension-*.desktop. – Degru Nov 1 '15 at 21:35

My Ubuntu 14.04LTS does not have a mimeapps.list.

I solved this issue creating a new file in /usr/share/applications called mimeapps.list with the following content:

[Added Associations]
[Removed Associations]

In this case, the configuration will remove applications from the context menu of any folder. I got most of the information from here:


I have also found mimeapps.list in ~/.local/share/applications. I guess if you add the same lines to that file, it will work too.

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.