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 path
And 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