How to detect if X is unavailable? an easy way is look at the environment variables (which would make this a bug marked "love"), but having DISPLAY set does not mean that X is really running.
But then, are we going to care if someone is so evil to set DISPLAY manually?
How to detect if X is unavailable? an easy way is look at the environment variables (which would make this a bug marked "love"), but having DISPLAY set does not mean that X is really running.
But then, are we going to care if someone is so evil to set DISPLAY manually?