home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sgi / 18473 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  1.3 KB

  1. Path: sparky!uunet!cs.utexas.edu!rutgers!sgigate!sgi!fido!not-for-mail
  2. From: rck@fangio.asd.sgi.com (Robert Keller)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: Running Graphics program at startup time
  5. Message-ID: <1iavq8INNe9n@fangio.asd.sgi.com>
  6. Date: 5 Jan 93 03:37:44 GMT
  7. References: <C0CIE8.C5G@iat.holonet.net>
  8. Organization: Silicon Graphics, Inc., Mountain View, CA
  9. Lines: 27
  10. NNTP-Posting-Host: fangio.asd.sgi.com
  11.  
  12. cmumford@iat.holonet.net (Chris Mumford) writes:
  13. >I found out that for some reason using the rc2 approach works fine for
  14. >non-graphics programs, but for programs that do graphics it does not work.
  15. >In fact the first line of the program is not even run.
  16. >
  17. >Any solutions.
  18.  
  19. This is probably because xdm is preventing you from connecting to 
  20. the X server since no one has logged into the graphics head.
  21.  
  22. An Ugly way around this:
  23.     1) turn off the default window system startup, and
  24.         shutdown the window system 
  25.         /usr/gfx/stopgfx
  26.  
  27.     2) invoke the X server from YOUR rc2 script.  Use 
  28.        /usr/lib/X11/xdm/Xserver and /usr/bin/X11/X for 
  29.        ideas on how to do this. (presever the /usr/gfx/gfxinit
  30.        part from /usr/bin/X11/X !)
  31.  
  32.     3) run your application.
  33.  
  34. NOTE:  This disables the default startup/login sequence and gives
  35.     you LOTS of rope to hang yourself with.  If you screw up,
  36.     remove your rc2 script and run /usr/gfx/startgfx.
  37.     
  38. ...robert
  39.