[Tex/LaTex] How to change LyX pdf viewer

lyxviewers

I can't change the program that LyX uses to view pdfs. Currently LyX is using Xpdf to show pdf output, which is not an ideal program.

I've looked at other solutions to this problem and they have not worked. Changing the preferred viewer to xreader in preferences and then reconfiguring doesn't work. I would like to avoid changing files and stick to the LyX gui.

I'm using Linux Mint 18 Cinnamon 64-bit and Lyx 2.2.2.

Edit: Apparently if I export as a pdf, it opens it with xreader. Not sure why it insists on using xpdf when I hit the view eyeballs.

Best Answer

The problem is that LyX is not aware that xreader is a PDF viewer. For more information, see this mailing list thread.

For the solution, see this patch. Basically, just add xreader to the list of PDF viewers. On Ubuntu with the apt package, the configure script is located at /usr/share/lyx/configure.py.

This will be fixed in the next LyX version.