[sf-perl] determining console or xwindows mode

Quinn Weaver quinn at fairpath.com
Tue Mar 2 22:36:21 PST 2010

On Tue, Mar 2, 2010 at 8:35 PM, David Alban <extasia at extasia.org> wrote:
> caveat:  you can be running under X and not have your $DISPLAY set.
> not optimal, but it happens.

Really?  And new windows or subprocesses still know what X client to connect to?

> consider also checking for X11 libs and/or an X server process in the
> process table.

Hmnn, but you could have those and still not be running this
particular process with X.

Hmn.  There has got to be a better way.  One would think.

BTW, Richard, if you want to do some more research on this, try the
search term "X11" or "X Window System."  Those are the officially
blessed names.  "X" is blessed too, but it's used for too many other
things to be a useful search term.  "X Windows" and variants are
misnomers, so they're not likely to turn up anything.


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

More information about the SanFrancisco-pm mailing list