Glad to hear that you got the e-mail.
Now I did say above --
Quote:
Put the file in the directory specified by the environmental variable
XAPPLRESDIR, or put it in /etc/X11/app-defaults
|
Let me just explain how X11 programs (provided that they have been
correctly written by the programmer) obtain their resources, taken
from the approximate and incomplete sequence described in
the O'Reilly book "X User Tools" by Mui and Vercia
When the X11 program starts up it looks for entries in a file whose name is
the "class" of the application -- for rxvt, the class is Rxvt --
NB in each case below, replace class with the actual class name eg Rxvt
1) in the file /usr/lib/$LANG/app-defaults/class if it exists
2) in the file /usr/lib/X11/app-defaults/class if it exists
or on many systems in the file /etc/X11/app-defaults/class if it exists
3) if the environmental variable XUSERFILESEARCHPATH is set,
then it looks for the file $XUSERFILESEARCHPATH/class
4) if the environmental variable XAPPLRESDIR is set,
then it looks for the file $XAPPLRESDIR/$LANG/class
otherwise for the file $XAPPLRESDIR/class
otherwise for the file $HOME/$LANG/class
otherwise for the file $HOME/class
5) then it checks in the X server display RESOURCE_MANAGER property
resources are added to this using the command
xrdb - merge apps_default_file
To see what is present in RESOURCE_MANAGER user
xrdb -q
6) then it checks in the file $HOME/.Xdefaults if it exists
7) then it checks to see if the variable $XENVIRONMENT points to a file
and looks in that file
8) if XENVIRONMENT has not been set, then it checks for
$HOME/.Xdefaults-hostname
9) then it processes any command line options which always override
any of the settings above eg - fg color or -xrm 'Rxvt*foreground: color'
So my advise to you is rather than mess up what you have in the installed
system applications defaults directory /etc/X11/app-defaults (but you
can do so if you wish, its your system) created a directory
mkdir -p /usr/local/X11R6/app-defaults
and put your customized app-defaults in there, like the Rxvt file I sent you, and set the environmental variable XAPPLRESDIR to point to that directory
So if you are using sh, bash, or ksh as your login shell
put the following lines in your $HOME/.profile
if [ -n "${DISPLAY}" ]
then
XAPPLRESDIR="/usr/local/X11R6/app-defaults"
export XAPPLRESDIR
fi
or if your login shell is csh or tcsh,
put the following lines in your $HOME/.cshrc or $HOME/.tcshrc
(as appropriate)
if (${?DISPLAY} == 1) setenv XAPPLRESDIR "/usr/local/X11R6/app-defaults"
Once that is done, and you have sourced your .profile or .cshrc or
.tcshrc, then you will be able to fire up rxvt and it will read the defaults.
Again, I draw your attention to what I already described above as
to how to get color scheme specific versions of rxvt with applications
running in them
eg rxvt -name vi -e vi
and how to set up aliases for them in your .profile for the Bourne, Korn,
or Bash login shell.
So do you understand what is happening now when you fire up an
X11 application and how to set its application defaults resources?