Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jul 2001 15:07:01 -0700
From:      "Chad R. Larson" <chad@DCFinc.com>
To:        Stable@FreeBSD.org
Subject:   running on X server?
Message-ID:  <20010726150701.C9091@freeway.dcfinc.com>

next in thread | raw e-mail | index | archive | help
Is there a simple, reliable way to determine if a script is running
in an X environment?

I've seen too many scripts (such as the one shipped with urlview)
that test for the presence of the environmental variable DISPLAY,
but that's hardly foolproof.

	-crl
--
Chad R. Larson (CRL15)   602-953-1392   Brother, can you paradigm?
chad@dcfinc.com         chad@larsons.org          larson1@home.com
DCF, Inc. - 14623 North 49th Place, Scottsdale, Arizona 85254-2207

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010726150701.C9091>