Necrotica wrote:
> 
> I'm interested in learning a little about bash scripting. In particular, I'd
> like to learn how to tell if the user logging on is logging in under X or from
> a command prompt. Can anyone point me in the direction of where I can find this
> information? Thanks...
> 
> -Chris

printenv from Konsole when you are logged in in graphics mode

printenv from a console (logged in on runlevel 3)

Check the settings of the DISPLAY variable

Civileme

Reply via email to