I am using Arch Linux. Each time I download a TeX file, Firefox suggest me to open it with notepad (which is installed through wine). Why?$ xdg-mime query filetype  Random-file.tex text/x-tex$ xdg-mime query default text/x-tex(nothing appears with the second command)$ xdg-open Random-file.tex Opening Random-file.tex with notepad  (text/x-tex)wine: invalid directory /home/janus/.wine in WINEPREFIX: not an absolute pathAnd it opens Firefox (why?), which ask me to either download the file or to open it with notepad.I do not want to have any app associated to x-tex. I use to download them and open in a console with VIM. I just do not understand why notepad is an option.Nor ~/.local/share/applications/mimeapps.list nor /etc/mime.types have the word notepad on it.I am using Mozilla Firefox 40.0.3
Firefox tries to open TeX files with wined notepad
xdg open
grep -ri notepad ~/.local/share/applicationsAre you sure that this gives 0 results? Here on my ArchLinux I have few files with names starting with wine-extension that register Notepad. I suggest You removing them.Also, for future, to disable registering wine apps You can run winecfg and perform this:Go to the Libraries tab and type winemenubuilder.exe into the New overrides box (it is not in the dropdown list). Click add, then select it from the Existing overrides box. Click Edit and select Disable from the list, then click Apply. 