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