Hi! It seems that texdoc uses the command "(see %s)". This behavior comes from the /usr/share/texmf/texdoc.cnf file. So the first thing to check is whether see (which is more or less an alias of run-mailcap) uses xpdf or evince. On my laptop, it used xpdf by default (written in file /etc/mailcap). I do not know if it is by default or if it comes from the installation of xpdf (that I have).
To change the behavior of run-mailcap (and thus see and texdoc), a solution is to edit ~/.mime.types to add "application/pdf pdf" and ~/.mailcap to add "application/pdf; evince %s". Note that on my laptop, the ~/.mime.types file is useless as this is already the default behavior (coming from /etc/mime.types). If you check /etc/mailcap, you see that other mime types use xpdf, such as x-pdf, pdf.gz, and so on. I guess it can be a good idea to use the same viewer for all of those, and so to add the corresponding lines to ~/.mailcap. I am not an expert so I hope what I said was at least in part true. It would be nice to know how to change directly the /etc/mailcap file as a root. I mean in another way than editing it with say gedit, but through a command line. I am reluctant to directly edit it as I don't want to include some errors in it. I think it is likely to exist a way to do it! -- texdoc should use evince and not xpdf https://bugs.launchpad.net/bugs/296288 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
