[Gllug] Detecting X in cshrc

Andrew Halliwell ah at gnd.com
Wed Apr 30 09:12:19 UTC 2003


And verily, didst Ian Norton announce to the hordes:
> 
> you could just see if the DISPLAY variable is defined?

The doesn't prove an X server is running.
Only that the variable has been set. (It can, after all, be set manually, so
you can start X programs from the console, or indeed, from a different
machine entirely)

There is an X*.lock file in /tmp though.
That should be a start.


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list