I tried to set document viewer default application.
Below is the procedure that helped me in resolving this annoying problem.
By Mina Michael:
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!
Thanks Attique, for posting this solution! It is the first that pointed me to the correct file >>>>> ~/.config/mimeapps.list
I wanted to associate tiff and tif files with the ImageJ application. - I first created an ImageJ.desktop file in /usr/share/applications/ with the following contents:
Version=1.0 Name=ImageJ Comment=ImageJ Launcher Exec=/home/vanmetter/.ImageJ/ImageJ Icon=/home/vanmetter/.ImageJ/images/icon.png Terminal=false Type=Application Categories=Utility;Application;
(see other posts for how to create .desktop files)
I then added:
to the [Defaults Applications] section of ~/.config/mimeapps.list. Choose either the [Default Applications] section or the [Added Associations] section as desired.
Now, my tiff and tif files open (double click) with ImageJ as the default program. If I had used the [Added Associations] section, I would right-click on the file and ImageJ would be offered as an alternate application to open tiff and tif files.