When I install shutter to take screenshots, imagemagick sets itself as default PDF-reader and I am unable to change it.
I would like to have evince as default PDF-reader.
I have tried right click on a PDF document in file explorer-> Properties -> Set default application-> Evince.
This does not work, imagemagick stays as default. Doing this with the file explorer opened as root works but it doesn't change the normal-user default application.
Using xdg-mime does not help either. In /etc/gnome/defaults.list the default application for PDF is evince.
And, when I remove imagemagick-6.q16, evince becomes the default application for opening PDFs, but shutter is removed too.
Am I missing something ? Where can I change this behavior ?
I have an updated version of Debian Jessie in my computer and I am using Gnome3.
EDIT 1:
I can replicate this behavior with different file explorers (tested with nemo and nautilus)
The output of XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default application/x-pdf is
Checking /home/USER/.local/share//applications/mimeapps.list
Checking /usr/share/gnome/applications/defaults.list
Checking /usr/local/share//applications/defaults.list
Checking /usr/share//applications/defaults.list
I've checked this files:
- In
/home/USER/.local/share//applications/mimeapps.listI have a line withapplication/pdf=evince.desktop - In
/usr/share/gnome/applications/defaults.listthe PDF reader is set to evince too. - In
/usr/local/share/applications/defaults.listthere is no reference to PDFs. /usr/share/applications/defaults.listdoes not exist

XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default application/x-pdfoutput?xdg-open somefile.pdfon the command line, what application runs? What if you usesee somefile.pdf? Does running the following command help?grep 'pdf.*evince' /etc/mailcap >>~/.mailcapxdg-openuses imagemagick, withseethefile.pdfis opened withevince-previewer. Creating.mailcapdoesn't help.