Why does pdf files open with imagemagick?

Asked by Abdul Kalam on 2015-03-01

PDF files in my ubuntu machines open with imagemagick. Upon checking for configs as much as I know, i get the following results:

 $ xdg-mime query default application/pdf
 > evince.desktop

$ cat /home/makz/.local/share/applications/mimeapps.list | grep pdf
> application/pdf=evince.desktop

$ cat /etc/gnome/defaults.list | grep pdf
> application/pdf=evince.desktop
      application/x-bzpdf=evince.desktop
      application/x-gzpdf=evince.desktop
      application/x-xzpdf=evince.desktop

$ cat /home/makz/.config/mimeapps.list | grep pdf
> image/pdf=display.im6.desktop; #notice the mimetype is image/pdf

Despite the fact that evince is almost everywhere set as the default pdf handler, the pdf files open with imagemagick, that too is set with a wierd mimetype.

Why this happens ?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu imagemagick Edit question
Assignee:
No assignee Edit question
Last query:
2015-03-01
Last reply:
2017-01-05

Right click a PDF and select to open with another application. Tell the association.

Abdul Kalam (emakalam) said : #3

may be this is what you wanted : http://i.imgur.com/6XeioBK.png

Select document viewer then click 'set as default'

Abdul Kalam (emakalam) said : #5

yes sir. that is obvious. and deleting image/pdf=display.im6.desktop; from ~/.local/share/applications/mimeapps.list also does the job.

But why did happen ? Does the mimeapps list in ~/.local/share/applications/ have highest priority, or the latest addition to any mimeapps.list prevails over other settings , or something else ?

Anilkumar Garag (agarag) said : #6

I am also struggling with the same problem with ubuntu16.04 LTS
I have tried all the solutions suggested but not resolved

I am unable to locate mimeapps.list file on my computer

my computer has a file named /usr/share/applications/mimeinfo.cache
I tried editing this file, but could not save teh edited file at all.

where to find the mimeapps.list and how to edit the file?

Can you help with this problem?

Provide an answer of your own, or ask Abdul Kalam for more information if necessary.

To post a message you must log in.