[sf-perl] determining console or xwindows mode

Quinn Weaver quinn at fairpath.com
Sun Feb 28 18:58:20 PST 2010

If you're running under X, the DISPLAY environment variable should be  
set. So do:

if ($ENV{DISPLAY}) {

Quinn Weaver Consulting, LLC
Full-stack web design and development

On Feb 28, 2010, at 6:22 PM, Richard Reina <gatorreina at gmail.com> wrote:

> I have a program that must run differently in xwindows then it would  
> on a linux console.  I was wondering if there's a function to  
> determine if a program is running in a linux console or in xwindows  
> so that upon execute it  can make the necessary accommodations?
> Thanks,
> Richard
> _______________________________________________
> SanFrancisco-pm mailing list
> SanFrancisco-pm at pm.org
> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm

More information about the SanFrancisco-pm mailing list