PDFs open in GIMP on Linux system

3

1

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.

Macha

Posted 2010-07-30T20:50:51.407

Reputation: 4 772

What desktop environment (Gnome, KDE, XFCE, ...) are you using? – Benjamin Bannier – 2010-07-30T20:58:08.443

What DE are you using (if any)? [OOPS!] – dag729 – 2010-07-30T20:58:25.463

How are you opening the PDF? Nautilus, command-line, browser, etc.? – Matthew Flaschen – 2010-07-30T20:58:44.543

2I am using GNOME. (stupid 10 char limit) – Macha – 2010-07-30T20:59:41.110

@Matthew: Broswer and Nautilus, same result. – Macha – 2010-07-30T21:02:17.470

Answers

5

A bit of further research found that the offending file was ~/.local/share/applications/mimeapps.lst

Macha

Posted 2010-07-30T20:50:51.407

Reputation: 4 772

Nice one! Anyway...what desktop environment are you using? – dag729 – 2010-07-30T20:59:56.630

GNOME, but the link applies to KDE, so they seem to be the same in this regard. – Macha – 2010-07-30T21:03:22.507

thanks for answer and question. i encountered this very problem lately but was to lazy to look into that matter. done now :) – matthias krull – 2010-07-30T21:47:09.047

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

Posted 2010-07-30T20:50:51.407

Reputation: 1 881