home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sun / apps / 1831 < prev    next >
Encoding:
Internet Message Format  |  1992-09-04  |  1.7 KB

  1. Path: sparky!uunet!auspex-gw!guy
  2. From: guy@Auspex.COM (Guy Harris)
  3. Newsgroups: comp.sys.sun.apps
  4. Subject: Re: openwin and DISPLAY
  5. Message-ID: <14478@auspex-gw.auspex.com>
  6. Date: 4 Sep 92 17:54:28 GMT
  7. References: <1992Sep3.121811.22606@cbnewsh.cb.att.com> <1992Sep3.181602.20133@lsil.com> <1992Sep4.113258.1884@cbnewsi.cb.att.com>
  8. Sender: news@auspex-gw.auspex.com
  9. Distribution: na
  10. Organization: Auspex Systems, Santa Clara
  11. Lines: 34
  12. Nntp-Posting-Host: bootme.auspex.com
  13.  
  14. >but openwin is damaged -- it won't [easily] run anywhere but the
  15. >console.  i tried setting DISPLAY to the machine:0 form, and ow just
  16. >barked and died (a clean death -- i don't think it suffered much).
  17.  
  18. "Died" in what sense?
  19.  
  20. When I did
  21.  
  22.     DISPLAY=unix:0 /usr/bin/X11/xterm
  23.  
  24. on my machine running OW 2.0, the "xterm" came up just fine, and when I
  25. did
  26.  
  27.     DISPLAY=unix:0 shelltool
  28.  
  29. the "shelltool" (yes, it's the XView one, not the SunView one) came up
  30. just fine.
  31.  
  32. Thus, the suggestion of the poster to whom you're responding, namely:
  33.  
  34.    X uses the DISPLAY variable to indicate the host running the X server,
  35.    "and the screen number (do a "man X" for details).
  36.    "To redefine DISPLAY for this application, try running the program via env:
  37.    "    env DISPLAY=whatever your_application and its arguments
  38.  
  39. i.e., set DISPLAY to a different value when running that *particular*
  40. application, should work just fine.
  41.  
  42. Now, of course, given that ":0", not "unix:0", is, as far as I know, the
  43. official X11R4-and-later politically-correct,
  44. non-oppressively-UNIX-centric way of saying "display 0 on the machine on
  45. which the application is running", if the application in question is
  46. *itself* looking at DISPLAY, it should be taught about ":0".  It may
  47. just have been linked, statically, with an older X11 library, though.
  48.