[Tex/LaTex] LyX – Unable to Preview PDF after Upgrade 2.0.6 to 2.1.3


I recently had to upgrade my LyX distribution to remain compatible with a LyX distribution on a different machine. When I upgraded (2.0.6 to 2.1.3), I was no longer able to generate preview PDFs. I am still learning the program, and it is not clear to me if I need to redirect the paths for certain actions. Comparing the preferences across distributions (my old distribution was not overwritten, and I can still push to PDF from it), there does not seem to be a noticeable difference. On the new distribution, I get the following error in the terminal when I attempt to preview:

No protocol specified

** (evince:21375): WARNING **: Could not open X display
No protocol specified
error: XDG_RUNTIME_DIR not set in the environment.
Cannot parse arguments: Cannot open display: 

Has anyone encountered this before? The questions that I have seen related to this issue don't seem to match my problem specifically, so any help would be greatly appreciated.

UPDATE: In response to a comment below, here is quick test of evince.:

user:~/dissertation$ evince 02-10-revenueprojections.pdf 
Syntax Warning: parseAction: Unknown annotation action object: URI = 'NULL'
Syntax Warning: parseAction: Unknown annotation action object: URI = 'NULL'

** (evince:22388): WARNING **: Unimplemented annotation: POPPLER_ANNOT_STAMP.  It is a known issue and it might be implemented in the future.

Despite the warning, the PDF opens just fine.

Best Answer

Not sure this is the best solution in the world, but I just replaced evince as the preferred PDF reader.

Tools > Preferences > File Handling > File Formats

I selected the PDF(pdflatex) format, and changed the viewer from evince to xpdf.

Related Question