KDE's kdm starting filePro

Jay R. Ashworth jra at baylink.com
Fri May 13 07:06:29 PDT 2005


On Fri, May 13, 2005 at 09:57:21AM -0400, Kenneth Brody wrote:
> Quoting Walter Vaughan (Fri, 13 May 2005 09:29:07 -0400):
> > I am not sure this is possible. I have a KDE environment that I need to
> > startup in a GUI environment from boot via kde (this is not the problem).
> [...]
> > I can't seem to see a way to have .profile execute differently when it's
> > a ssh connection vs. KDE's startup.
> >
> > Any and all ideas accepted. Karma bonus modifiers handed out freely.
> 
> (Note:  I do not have a kde setup in front of me at the moment...)
> 
> Check $0 and the environment to see if there's anything in there that
> tells you.  I seem to recall an environment variable (DISPLAY?) that
> is set once in the windowed environment.  Perhaps it's set when running
> kde's startup, and it won't be there for a standard ssh connection?

Almost.

If you SSH in from an X session on another machine, and X forwarding is
enabled, the resulting shell session *will* have a DISPLAY variable:
that of the tunnel to the machine you came from.

SSH itself, though, sets a variable in the environment that you could
check for, as long as "is an ssh session" is a good enough indicator.

Look for $SSH_CLIENT.

Cheers,
-- jra
-- 
Jay R. Ashworth                                                jra at baylink.com
Designer                          Baylink                             RFC 2100
Ashworth & Associates        The Things I Think                        '87 e24
St Petersburg FL USA      http://baylink.pitas.com             +1 727 647 1274

      If you can read this... thank a system administrator.  Or two.  --me


More information about the Filepro-list mailing list