This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: SSH Notes
- From: John Morrison <john dot r dot morrison at ntlworld dot com>
- To: cygwin-xfree at cygwin dot com
- Date: Fri, 4 Oct 2002 19:01:47 +0100 (BST)
- Subject: RE: SSH Notes
- Reply-to: cygwin-xfree at cygwin dot com
On Fri, 4 Oct 2002, Alexander Gottwald wrote:
> SuSE has a similar thing in their default .profile
Is that /etc/profile or ~/.bash_profile?
> if test -z "$DISPLAY" -a "$TERM" = "xterm" -a -x /usr/bin/who ; then
> WHOAMI="`/usr/bin/who am i`"
> _DISPLAY="`expr "$WHOAMI" : '.*(\([^\.][^\.]*\).*)'`:0.0"
> if [ "${_DISPLAY}" != ":0:0.0" -a "${_DISPLAY}" != " :0.0" \
> -a "${_DISPLAY}" != ":0.0" ]; then
> export DISPLAY="${_DISPLAY}";
> fi
> unset WHOAMI _DISPLAY
> fi
>
> And there are a lot of cases where this does not work and you search a
> long time for error.
So, not something folks would like me to add to /etc/profile?
J.