SUMM: How to determine if a user logged via XDM or not

From: Guy Dallaire <dallaire_at_total.net>
Date: Wed, 4 Dec 1996 11:08:37 -0500

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_at_total.net

"God only knows if god exists"
Received on Wed Dec 04 1996 - 17:40:14 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT