in reply to X or console?
It's not foolproof. But after you get a hint from these, you can look at CPAN's X11 modules for more support.sub hasX { return undef if not defined $ENV{DISPLAY}; return undef if port_not_listening($ENV{DISPLAY}); return 1; }
--
[ e d @ h a l l e y . c c ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: X or console?
by bobn (Chaplain) on Jul 23, 2003 at 18:53 UTC | |
by halley (Prior) on Jul 23, 2003 at 19:09 UTC | |
by bobn (Chaplain) on Jul 23, 2003 at 23:51 UTC |