home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / aix / 11479 < prev    next >
Encoding:
Text File  |  1992-11-11  |  2.4 KB  |  62 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!yktnews!lucien
  3. From: lucien@watson.ibm.com (Lucien Van Elsen)
  4. Subject: Re: Minor X11 problems (AIX 3.2.0)
  5. Sender: news@watson.ibm.com (NNTP News Poster)
  6. Message-ID: <LUCIEN.92Nov11095349@fionavar.watson.ibm.com>
  7. In-Reply-To: valdes@geosun.uchicago.edu's message of Tue, 10 Nov 1992 18:50:15 GMT
  8. Date: Wed, 11 Nov 1992 14:53:49 GMT
  9. Disclaimer: This posting represents the poster's views, not necessarily those of IBM
  10. References: <1992Nov10.185015.14098@midway.uchicago.edu>
  11. Nntp-Posting-Host: fionavar.watson.ibm.com
  12. Organization: IBM T.J Watson Research Center
  13. Lines: 47
  14.  
  15. valdes@geosun.uchicago.edu (John Valdes) writes:
  16. >...
  17. >#
  18. ># Load default resources
  19. >#
  20. >
  21. >if [ -f $HOME/.Xdefaults ]; then
  22. >    xrdb -load $HOME/.Xdefaults
  23. >else
  24. >    xrdb -load $XHOME/lib/Xdefaults  # XHOME == /usr/lpp/X11, which as already
  25. >fi                                   #   been defined elsewhere
  26. >
  27. >#
  28. ># Start default clients
  29. >#
  30. >
  31. >aixterm &
  32. >xclock -geometry 100x100-5+5 &
  33. >
  34. ># Start up window manager last
  35. >
  36. >mwm
  37. >
  38. >The problem I've been having with this is that xrdb runs, buts doesn't
  39. >load the resources from the appropriate file.  Aixterm, xclock and mwm
  40. >all start properly, however.  If I run xrdb manually from the aixterm
  41. >that starts up, though, xrdb works fine.  The problem occurs
  42. >regardless of when xrdb is run; if I start aixterm and xclock before
  43. >xrdb, aixterm and xclock start, but xrdb still fails to run properly.
  44.  
  45.   This problem is almost certainly due to the fact that the X11R4 X server
  46. (which is new to 3.2) resets itself when the number of clients connected to
  47. it drops to zero.  This means any resources/keybindings/etc will be lost.
  48. Assumming there is nothing that keeps an open connection to the X server
  49. invoked before the xrdb, the server will reset itself as soon as the xrdb
  50. exits.
  51.   Luckily, there's an easy way to work around this, using a client called
  52. "xsleep".  It does nothing but keep a connection to the X server open for a
  53. specific amount of time, and then exit- you'll just need to put a "xsleep 60
  54. &" before your invocation of xrdb.  xsleep is available from export.lcs.mit.edu
  55. in /contrib/xsleep.tar.Z.
  56.  
  57.     -Lucien
  58. --
  59. -----------------------------------------------------------------------
  60. Lucien Van Elsen                                          IBM  Research
  61. lucien@watson.ibm.com                                     Project Agora
  62.