Date: Fri, 27 Jul 2001 09:43:34 -0400 From: "Antoine Beaupre (LMC)" <Antoine.Beaupre@ericsson.ca> To: Mike Meyer <mwm@mired.org> Cc: "Chad R. Larson" <chad@DCFinc.com>, Stable@FreeBSD.ORG Subject: [OT] Re: running on X server? Message-ID: <3B617006.4030704@lmc.ericsson.se> References: <20010726150701.C9091@freeway.dcfinc.com> <200107262222.f6QMMXO00601@bunrab.catwhisker.org> <20010726202622.A9940@freeway.dcfinc.com> <15201.23769.367007.292402@guru.mired.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Mike Meyer wrote: > I think this belongs on -questions, not -stable, but I'm not going to > move it. me too. > Chad R. Larson <chad@DCFinc.com> types: > >>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. > > If you don't know which of the many possible ports on the internet the > X server you're supposed to talk to might be listening on, you're > pretty much screwed. DISPLAY tells you which of those X servers to > use. Without it, the only safe assumption is that you don't have an X > server to talk to. If it's wrong - well, you could try connecting to > it and if that fails go back to the "no X" assumption. But failing and > letting the user fix it is probably a better bet. FWIW, I think some programs don't even need DISPLAY. For example, I was very surprised to have rxvt (in the ports) start on ":0" by itself even when no DISPLAY was set. This was scary. :) A. -- Antoine Beaupré Jambala TCM team Ericsson Canada inc. mailto:antoine.beaupre@ericsson.ca 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?3B617006.4030704>