5

It seems Chromium uses xdg-open to open PDF files.

How do I change it to another PDF reader?

I'm using Linux Mint 8 LXDE.

slhck
  • 223,558
  • 70
  • 607
  • 592
chenge
  • 343
  • 1
  • 3
  • 11
  • Please, just add comments. Only answer your question if you know the answer for sure and it IS an answer. This way its a comment amongst the answers. – Apache Jun 10 '10 at 09:10
  • Second note: PLEASE do NOT write new answers. Just comment HERE.. HERE. That's all. – Apache Jun 10 '10 at 10:19

3 Answers3

6

This command edits the configuration file to use xpdf as the default PDF viewer:

xdg-mime default xpdf.desktop application/pdf

More details about xdg-open can be found here:

https://wiki.archlinux.org/index.php/Xdg-open

gypaetus
  • 165
  • 1
  • 6
1

Check these:
/usr/share/applications/defaults.list
~/.local/share/applications/defaults.list

And the command xdg-mime. Use man xdg-mime to RTFM :))).

Apache
  • 15,981
  • 25
  • 100
  • 152
1

I had the exact problem the OP describes on Ubuntu 10.04. It seems I had entries for both xpdf AND evince in /etc/mailcap.

application/pdf; /usr/bin/xpdf '%s'; test=test "$DISPLAY" != ""; description=Portable Document Format; nametemplate=%s.pdf
application/x-pdf; /usr/bin/xpdf '%s'; test=test "$DISPLAY" != ""; description=Portable Document Format; nametemplate=%s.pdf
application/x-dia-diagram; dia '%s'; description="DIA diagram"; test=test -n "$DISPLAY"; nametemplate=%s.dia
audio/basic; /usr/bin/esdplay '%s'
audio/x-wav; /usr/bin/esdplay '%s'
audio/x-aiff; /usr/bin/esdplay '%s'
application/pdf; evince '%s'; test=test -n "$DISPLAY"; nametemplate=%s.pdf
application/x-pdf; evince '%s'; test=test -n "$DISPLAY"; nametemplate=%s.pdf

removing/commenting out the entries for xpdf resolved the issue for me

kisoku
  • 111
  • 2