If it hasn't changed since TeXLive 2009, you can set
viewer_pdf=evince
in the configuration file. To find out which file to put that in, run
texdoc -f
and you will see some output like this:
texdoc 0.61
Configuration files are:
absent /home/username/texmf/texdoc/texdoc-bin.cnf
(*) absent /home/username/texmf/texdoc/texdoc.cnf
absent /home/username/texmf/texdoc/texdoc-dist.cnf
absent /usr/local/share/texmf/texdoc/texdoc-bin.cnf
absent /usr/local/share/texmf/texdoc/texdoc.cnf
active /usr/share/texmf/texdoc/texdoc.cnf
(*) This is the recommended configuration file for your personal preferences.
Put the line in the filename marked by the (*), creating it if necessary.
EDIT: To add to the above explanation: according to the documentation (and again, this is for TeXlive 2009), texdoc gets its configuration information from 5 sources.
- Command-line options (irrelevant for this question, since there's no CL option to set the viewer app)
- Environment variables ending with
_texdoc. PDFVIEWER_texdoc is the one that controls the PDF viewer.
Other environment variables. For the PDF viewer app, these are
PDFVIEWER
TEXDOCVIEW_pdf
TEXDOC_VIEWER_PDF
The documentation isn't clear on which order they're checked in but PDFVIEWER is the preferred alternative so I'd expect it to take precedence over the others.
- Values from configuration files, read in the order given by
texdoc -f
- Hard-coded defaults (system-dependent)
Again, this is all explained in the documentation, which can be accessed by running
texdoc texdoc
PDFVIEWER_texdoc, right? – David Zaslavsky Jul 27 '10 at 3:08PDFVIEWERdidn't work for you, since if I'm reading the documentation right, it should be the second thing thattexdocchecks afterPDFVIEWER_texdoc. But anyway, glad you got it working. – David Zaslavsky Jul 27 '10 at 3:28