From Newsgroup: comp.windows.x
Grant Taylor <gtaylor@tnetconsulting.net> writes:
"P" == pedro1492@lycos.com writes:
[Cross-posting to news:comp.windows.x.]
[...]
Is there some other configuration file that might work?
I'm not sure of the relationship between ~/.Xdefaults and
~/.Xresources and any variant of the two.
The difference is that ~/.Xdefaults is read by libXt-based
programs (such as XTerm) each time one is started, whereas
.Xresources is read by xrdb(1), typically once during user
session initialization (from /etc/X11/Xsession or the like.)
As such, after .Xresources is changed, it's necessary to use
$ xrdb -merge < ~/.Xresources for the changes to take effect.
The difference between the approaches also shows when X clients
come from different hosts. Suppose that I start XTerm's from
three remote hosts, like:
$ dsh -c --machine=foo,bar,baz -- uxterm &
There (assuming $HOME is /not/ shared), each XTerm will read
~/.Xdefaults from its own host, while only one copy of Xrdb data
will be read by them all from the X server itself -- as loaded
there by xrdb(1). When such a setup is used, maintaining a single
~/.Xresources file on whatever host the X session is started on may
come more convenient than maintaining a bunch of ~/.Xdefaults files.
Not to mention that Xrdb is easier to experiment with, IMO; like:
$ printf %s\\n "XTerm.vt100.geometry: 80x32" | xrdb -merge
There is a chance that XTerm is being started with a different -name
value. This means that it will be looking for <thatName>*geometry.
I do this to have different configurations for different programs in
XTerm. I. e.
myProgram.vt100.geometry: 80x25 myProgram.vt100.font: 10x20 myProgram.vt100.utf8Fonts.font: 10x20
That's apparently the case, per [1]:
The ancient program launches xterm with a command like this:
sh -c xterm -name fubar -T title -n app
In such a case, indeed, the resource to set should be either
fubar.vt100.geometry: /or/ XTerm.vt100.geometry: -- with the
'XTerm' /class/ name (that can be changed separately with -class)
used instead of the 'fubar' instance name (set with -name.)
[1] news:
db4cccd4-a2c6-4a87-a5a8-682b6cddc574@googlegroups.com
--
FSF associate member #7257
http://am-1.org/~ivan/
--- Synchronet 3.21d-Linux NewsLink 1.2