home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.apps
- Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsi!cbnewsh!merlin!wolf
- From: wolf@mt.att.com (Thomas Wolf)
- Subject: Re: openwin and DISPLAY
- Reply-To: wolf@mt.att.com
- Organization: AT&T Bell Laboratories
- Date: Thu, 10 Sep 1992 12:05:47 GMT
- Message-ID: <1992Sep10.120547.26796@cbnewsh.cb.att.com>
- References: <1992Sep6.123129.5343@ukw.uucp>
- Sender: news@cbnewsh.cb.att.com (NetNews Administrator)
- Nntp-Posting-Host: merlin.mt.att.com
- Lines: 39
-
- In article 5343@ukw.uucp, lupe@ukw.uucp (Lupe Christoph) writes:
- "> "wolf@mt.att.com (Thomas Wolf) writes:
- "> "
- "> ">This is probably a FAQ: Why does the openwin script overwrite the DISPLAY
- "> ">variable with its own ":0"? An application I'm running under OW3.0 needs
- "> ">to have at least "unix" or a hostname in that variable. What's the simplest
- "> ">solution to retaining the variable?
- "> "
- "> "From "man openwin":
- "> "
- "> " DISPLAY
- "> " By default this is ":0" meaning this xnews server is
- "> " the first (zero based) one running on this machine. If
- "> " you need to run more than one server on a given
- "> " machine, use the "-display" option.
- "> "
- "> "The man pages are a bit fuzzy on this. But you *can* use the -display
- "> "option with openwin just like that used by the clients.
-
- That's not quite true. When I try "openwin -display unix:0.0" (which is quite
- legal with most/some/whatever x-clients) the server complains about invalid
- command-line arguments. I think the above just gives you the option of specifying
- a different display number - e.g. "openwin -display :1".
-
- I originally asked the question because I had an "ill-behaving" application (ie.
- my application :-) that required the DISPLAY variable to have _something_ before
- the colon. I didn't realize know, at the time, that wasn't necessarily the case.
- However, the question itself is still valid. I don't think the "openwin" script
- should decide for the user what to set DISPLAY to -- iff the user already has an
- environment variable of that name set.
-
- Tom
- ---
- +----------------------------------------+ ..I've been told my signature lacked
- | Thomas Wolf | (908) 957-3955 | originality...Of course it does!
- | Bell Labs, NJ | wolf@merlin.mt.att.com | I'm a conservationist - and
- | MT 4D-213 | wolf@jolt.att.com | originality, in my case, is a
- +----------------------------------------+ an extremely limited resource...
-
-