On Thu, 1 Mar 2001, Alexander Skwar wrote:
> > don't know. I'll test one day. Did you export the display correctly?
> Yes, it's exported automatically, and other X apps work just fine.
> <snip>
> Hmm, justed tested a bit more, and it seems that this error happens with all
> X apps?!?
> <snip>
> So it's not even an error of the gfx library (gtk/qt), because it happens
> with KDE programs as well as with GNOME stuff....
I've just spent 15 minutes fixing this problem (it may already have been
fixed but I don't have a Cooker to check it on):
As part of ssh's X11 authentication spoofing, it sets XAUTHORITY to point
to a temporary "cookies" file.
At some point since 7.0, a section has been added to /etc/skel/.bashrc
that overwrites the XAUTHORITY variable at login. This screws up
SSH. (Courtesy of the openSSH web site.)
Quick fix: Comment out the line
export XAUTHORITY=$HOME/.Xauthority
in ~/.bashrc
Proper fix:
Why is this line even included in ~/.bashrc? XAUTHORITY is already set by
/etc/profile.d/xhost.sh, which checks to see if it is already set before
overwriting it - so it works happily with ssh.
************************************************************************
This line ( export XAUTHORITY=$HOME/.Xauthority ) should be removed from
/etc/skel/.bashrc
************************************************************************
The next problem is that the offending line was in /etc/skel/.bashrc,
rather than e.g. /etc/bashrc or /etc/profile. This means that users
existing on a 7.2 system that is upgraded to 8.0 will still suffer from
the problem!
Ideas for an elegant way to fix this, anyone?
Michael