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

After installing Wine, Notepad has became a default application to open unknown textual files by double click. I'd like to eliminate this behaviour and remove Notepad from the list of applications offered to open an unknown type file. I've deleted /usr/share/applications/wine-notepad.desktop, but this didn't help. How can I disable Notepad correctly?

I use XUbuntu 11.10 (XFCE 4.8) and Wine 1.3.

share|improve this question
up vote 8 down vote accepted

I had that problem too some months ago, and I remember I had to delete some .desktop files that were inside the $HOME/.local/share/applications folder. I think you should delete any file that has notepad as part of its name, and also you should try to delete (or move somewhere else) the files wine-extension-*.

share|improve this answer
The only file you need to delete or rename is wine-extension-txt.desktop. This associates MimeType=text/plain with Windows Notepad. – skierpage Jun 2 at 22:32

Modify /usr/share/applications/wine-notepad.desktop, adding the line:


There is a bit more information about what that does here. Alternatively, you could probably just delete that file instead.

share|improve this answer

You can also follow the instructions here to disable this behavior altogether:


Although you'll still need to follow the steps in nozimica's answer to get rid of existing associations.

share|improve this answer

For , I have done :

cd ~/.local/share/applications
rm wine-extension-*
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.