I installed evince on my Arch Linux system as a PDF reader, and everything was fine for a while. And then I installed GIMP. Since then, PDF files have been opening in GIMP. I've tried reinstalling evince, I've tried editing ~/.local/share/applications/defaults.list , I've tried editing /usr/share/applications/mimeinfo.cache, but PDF files still open in GIMP by default.
Asked
Active
Viewed 2,296 times
3
Macha
- 5,442
2 Answers
5
A bit of further research found that the offending file was ~/.local/share/applications/mimeapps.lst
Macha
- 5,442
0
I found that Firefox uses the XDG standard, so using the XDG command line apps to set default applications solved the problem for me.
$ xdg-mime default evince.desktop application/pdf
This tells anything using XDG to use Evince to open application/pdf files.
There's more info where I found this, on the ArchLinux wiki.
Malvineous
- 2,798