tags:

views:

44

answers:

1

Hi all,

On a POSIX-compliant system, how do one detect if X is running and if it's usable for the application.

+1  A: 

Check if $DISPLAY has a value, and try to connect the the server at that address.

Ignacio Vazquez-Abrams
Thanks for the help.
Anders