On Mon, 2003-06-30 at 14:24, Patrick Devine wrote: > I looked through the code and found there is a line which changes the > Xauth file to point at the wrong place: > > if os.environ.has_key('HOME'): > os.environ['XAUTHORITY'] = os.environ['HOME'] + '/.Xauthority' > > .. > > I've attached a patch which will check to make certain that SSH_TTY isn't > set in the shell (which should indicate that this is a remote session) > before reassigning the Xauth path. It works with OpenSSH but I haven't > tried it with any other flavours. When this happens, don't you have $XAUTHORITY set already? That's probably the better thing to check for not existing (basically, XAUTHORITY needs to be set and this is making sure it is). Jeremy