opening document from ssh login is impossible if already displayed in running evince
Submitted by Yeti
Link to original bug (#777111)
Description
Evince apparently only allows opening another view of a document on the same display, making viewing the same document again over ‘ssh -X’ impossible.
Steps to reproduce:
-
Run
evince document.pdf
in a local session on a machine denoted m1.
-
Connect to machine1 from another computer (m2) via ssh as
ssh -X m1
-
In the remote login, display a different document to check that everything works fine
evince another-document.pdf
This should work (if it does not work, there is another problem unrelated to evince). If it works close another-document.pdf.
4a) Now try to display document.pdf
evince document.pdf
4b) Alternatively just run
evince
and try to select document.pdf from the list of previews of recent document by clicking on the preview.
4c) Alternatively just run
evince
and try to select document.pdf in the file chooser.
Expected results: 4abc) In all cases, evince shows document.pdf in a new view on m2's screen.
Actual results: 4abc) In all cases, message
X11 connection rejected because of wrong authentication.
is printed to the terminal and nothing is displayed.
Further remarks: The check in step 3 is important. I can display on m2's screen any document except documents already displayed by evince on m1. So the problem is inherently tied to evince's insistence on using the existing document view (see also bugs 752601, 688636).
Evince can display another view of the document -- but this can be only done from the GUI already displaying the first view on m1. There is no way to do that from m2.
Similar problems would be prevented if, as suggested in other reports, it was possible to force open-new-view from the command line, like
evince --new-view document.pdf
Version: 3.20.x