Re: remote development / display environment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux