Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from Jun 8 '10 at 15:15

This question came from our site for professional and enthusiast programmers.

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. – Shiki Jun 10 '10 at 9:10
Second note: PLEASE do NOT write new answers. Just comment HERE.. HERE. That's all. – Shiki Jun 10 '10 at 10:19

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:

share|improve this answer

Check these:

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

share|improve this answer
is it a bug of chrome? does xdg-mime use .local/ list file? – chenge Jun 10 '10 at 9:35
Try the other system wide configuration file. OR you can install Adobe reader. – Shiki Jun 10 '10 at 10:19

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.