[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

How to test whether script runs under X11



I assumed that DISPLAY was only set when X11 is running, but that is not
true.  My system however has HOSTDISPLAY unset when I'm on the console, and
set when I run X11.  Is that a general feature?  If not, how can I detect (in
a postinst) whether I am running under X11 or not?

-- 
   PGP key fingerprint = B2 49 75 BF 44 2C B7 AA  50 CB 19 7D 80 F7 CB DC
   http://qed.econ.queensu.ca/~edd edd@qed.econ.queensu.ca edd@debian.org


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: