0

When I'm trying to open a pdf file by using evince command it showing like this

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

Please give me the solution to work with evince.

1 Answer 1

2

evince is an editor designed to run under a GUI (man evince says The Evince Document Viewer application for the GNOME desktop environment), and you seem to be running it in a non-GUI environment.

Either run evince in a graphical environment, or, if you're accessing this system via ssh (and have a local X server), check man ssh and use ssh -X ... to initiate your session.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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