* SUMM: How to determine if a user logged via XDM or not
@ 1996-12-04 16:08 Guy Dallaire
0 siblings, 0 replies; only message in thread
From: Guy Dallaire @ 1996-12-04 16:08 UTC (permalink / raw)
To: tru64-unix-managers
Thanks to all those who replied.
My original question follows:
Is there a way to determine if a user logged from an X terminal (xdm) in its
.profile ? I have to run some commands from their .profile ONLY if they are
not logging via X-Windows.
Sorry if my question was not very clear, I'm french speaking and sometimes
the words just don't get out as they should. I just wanted to be able to
determine, from the .profile, if a user was connecting via x-windows or not.
Thanks !
The easiest solution:
Check for the presence of the $DISPLAY environment variable. If it's set,
then the user is using X, otherwise, it's a serial or telnet connection.
Guy Dallaire
dallaire@total.net
"God only knows if god exists"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-12-04 16:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-12-04 16:08 SUMM: How to determine if a user logged via XDM or not Guy Dallaire
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox