Ubuntu – Firefox Opening Pdfs in Gedit

firefoxgeditpdf

I've just done the latest system upgrade to my Ubuntu LT 14.04 and now pdfs don't open with Firefox; instead they open with Gedit to give mangled nonsense.

After searching around ask Ubuntu I found two useful question/answers here and here from which I cribbed the following 'almost'-fix.

I did a fix of this using vi ./.local/share/applications/mimeapps.list and putting a # as follows #application/octet-stream=gedit.desktop; and I also added an extra line as follows, application/octet-stream=evince.desktop; but I still have a problem.

The pdf is downloaded and then opened rather than simply opened (like it used to…).

Does anyone have any suggestion as to how to modify the line?

Edit

This phenomenon may be peculiar to certain urls rather than to the current set-up of my Linux Box. Using this link gives the problem described; whereas using this link works as it did in the past. Your thoughts are welcome.

Best Answer

Please comment (add #) or remove

# application/octet-stream=gedit.desktop; 

in your

~/.local/share/applications/mimeapps.list

That's works for me.

Related Question