Unable to restore Envince as default pdf viewer

Solution 1:

You don't need to delete the file and lose all the associations. You could just remove the lines that associate PDF to imagemagick. I just removed the following lines from ~/.config/mimeapps.list, and it worked!

image/pdf=display-im6.desktop
image/pdf=display-im6.q16.desktop;display-im6.desktop;

Solution 2:

Ok, I solved the problem:

Rename or delete

~/.config/mimeapps.list

That's it :-)

If you've set other than default apps for certain filetypes open System Settings > Information > Default Associations and (re)set your favourites there...