This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: SSH Notes


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]