GNOME Bugzilla – Bug 616614
ssh -X <host> evince failed to open view, NX doesn't work as well
Last modified: 2012-07-28 21:54:10 UTC
Hi, I am trying to use evince in a virtual desktop environment. So from another host I try: ssh -X <host> evince error msg: X11 connection rejected because of wrong authentication. Cannot parse arguments: Can't open display : that was working before version 2.28 of evince, and still working with all other program, even with "gedit". With NX (NoMachine client, NeatX server) when it is used in Floating Windows mode (no virtual desktop) evince drops with this message: "No protocol specified cannot parse arguments: Can't open display :"
I'm seeing the same issue when ``ssh -X''ing from one machine to the other. I very much suspect the problem is with X authentication, or the lack there of, because of: /var/log/syslog: [...] Jan 2 11:35:15 feldtkeller kernel: [213692.473901] type=1400 audit(1325504115.745:875): apparmor="DENIED" operation="open" parent=5772 profile="/usr/bin/evince" name="/media/data/home/thomas/.Xauthority" pid=5899 comm="evince" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000 As already told by zyphos, this is not a problem with other applications, such as gedit.
For me it was a genuine apparmor issue. I have a symlink /home -> /media/kepler-data/home. As per <https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/447292>, I have to tell apparmor about this, which I have done with dpkg-reconfigure apparmor, and specifying that directory, which adds the path to /etc/apparmor.d/tunables/home.d/ubuntu. Case closed for me.
I think this should be closed. I had the same issue, and it's not an evince bug but an apparmor setting.