From owner-freebsd-stable Fri Jul 27 6:44:39 2001 Delivered-To: freebsd-stable@freebsd.org Received: from imr2.ericy.com (imr2.ericy.com [12.34.240.68]) by hub.freebsd.org (Postfix) with ESMTP id 30E9437B401 for ; Fri, 27 Jul 2001 06:44:36 -0700 (PDT) (envelope-from Antoine.Beaupre@ericsson.ca) Received: from mr6.exu.ericsson.se (mr6att.ericy.com [138.85.92.14]) by imr2.ericy.com (8.11.3/8.11.3) with ESMTP id f6RDhx522388; Fri, 27 Jul 2001 08:44:00 -0500 (CDT) Received: from noah.lmc.ericsson.se (noah.lmc.ericsson.se [142.133.1.1]) by mr6.exu.ericsson.se (8.11.3/8.11.3) with ESMTP id f6RDhtg18721; Fri, 27 Jul 2001 08:43:56 -0500 (CDT) Received: from lmc35.lmc.ericsson.se (lmc35.lmc.ericsson.se [142.133.16.175]) by noah.lmc.ericsson.se (8.11.2/8.9.2) with ESMTP id f6RDheA15129; Fri, 27 Jul 2001 09:43:46 -0400 (EDT) Received: by lmc35.lmc.ericsson.se with Internet Mail Service (5.5.2653.19) id ; Fri, 27 Jul 2001 09:43:39 -0400 Received: from lmc.ericsson.se (lmcpc100455.pc.lmc.ericsson.se [142.133.23.150]) by LMC37.lmc.ericsson.se with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id PXMX23QP; Fri, 27 Jul 2001 09:43:34 -0400 From: "Antoine Beaupre (LMC)" To: Mike Meyer Cc: "Chad R. Larson" , Stable@FreeBSD.ORG Message-ID: <3B617006.4030704@lmc.ericsson.se> Date: Fri, 27 Jul 2001 09:43:34 -0400 Organization: LMC, Ericsson Research Canada User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.2+) Gecko/20010717 X-Accept-Language: en,fr-CA,fr MIME-Version: 1.0 Subject: [OT] Re: running on X server? References: <20010726150701.C9091@freeway.dcfinc.com> <200107262222.f6QMMXO00601@bunrab.catwhisker.org> <20010726202622.A9940@freeway.dcfinc.com> <15201.23769.367007.292402@guru.mired.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mike Meyer wrote: > I think this belongs on -questions, not -stable, but I'm not going to > move it. me too. > Chad R. Larson 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