Article View: news.software.readers
Article #35290[SLRN] Detecting X (was: [SLRN] Help w/macro please)
From: Bjoern Frantzen
Date: Fri, 18 Jul 1997 00:00
Date: Fri, 18 Jul 1997 00:00
23 lines
1510 bytes
1510 bytes
Daniel Price <dp@cs.brown.edu> wrote:
>On 16 Jul 1997 17:36:30 GMT, Pardoz <pardoz@io.com> wrote:
>>to select an X browser instead. (Figuring out how to make it test for
>>X and present an appropriate menu based on mode is beyond me, however.)
>You can just use getenv("DISPLAY") to find out if the DISPLAY
>environment variable was set. If so, launch your favorite GUI browser,
I've seen the code in art.c, but I'm wondering if that code is so
good. On the *nix accounts I have I always declare DISPLAY in my
loginscripts as the display usually is on another machines.
When I test this now, I find that slrn (Linux) always want to run
Xbrowser even if I'm just telnetting in to that machine, no X at all.
Or maybe it's just my setups that are a bit uncommon... ;-)
--
-< Bj�rn >-
Technical Details
Message-ID:
<slrn5stj2h.4e.bjoff@bgnett.no>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn5sn34c.8o.pardoz@io.com> <slrn5so9nt.1u.bjoff@bgnett.no> <slrn5spe55.26.pardoz@io.com> <5qm549$p2l@cocoa.brown.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn5stj2h.4e.bjoff@bgnett.no> Subject: [SLRN] Detecting X (was: [SLRN] Help w/macro please) Date: Fri, 18 Jul 1997 00:00:00 +0000 From: bjoff@bgnett.no (Bjoern Frantzen) References: <slrn5sn34c.8o.pardoz@io.com> <slrn5so9nt.1u.bjoff@bgnett.no> <slrn5spe55.26.pardoz@io.com> <5qm549$p2l@cocoa.brown.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 257477360 Organization: Bergen Nett og Media AS Reply-To: bjoff@bgnett.no Newsgroups: news.software.readers