Bug 19950 - xrdb not called, every app must read .Xdefaults
Summary: xrdb not called, every app must read .Xdefaults
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: XFree86
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mike A. Harris
QA Contact: Dale Lovelace
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-10-28 04:03 UTC by Rick Richardson
Modified: 2007-04-18 16:29 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-05-15 04:29:52 UTC
Embargoed:


Attachments (Terms of Use)

Description Rick Richardson 2000-10-28 04:03:55 UTC
I don't know if this is considered a bug or a feature.  In older versions
of RedHat using
fvwm2, $HOME/.Xdefaults was automatically read by "xrdb".

In newer versions of Redhat using Gnome, xrdb is no longer called to read
the .Xdefaults file into the X server.  The result of this is that each and
every
X application now reads the .Xdefaults file when the application starts. 
This
would seem to me to be a performance issue.

Consider this trace...

# Start up an X application, note that the application reads the .Xdefaults
file
$ strace xterm 2>&1 | grep Xdefaults
open("/home/rick/.Xdefaults", O_RDONLY) = 4
open("/home/rick/.Xdefaults-ipcroe.rkkda.com", O_RDONLY) = -1 ENOENT (No
such file or directory)

# OK, now manually read the .Xdefaults file into the X server resource
database...
$ xrdb -merge .Xdefaults

# Voila, the application no longer wants to read this file every time it
starts up
$ strace xterm 2>&1 | grep Xdef
open("/home/rick/.Xdefaults-ipcroe.rkkda.com", O_RDONLY) = -1 ENOENT (No
such file or directory)

So what is it?  Should xrdb be invoked automatically the way it used to
be?  Or is
it considered normal behavior now for every application to have to read
.Xdefaults?

-Rick

Comment 1 David Mason 2000-10-30 16:18:38 UTC
re-assigning to X  - not a GNOME issue

Comment 2 Mike A. Harris 2001-10-04 11:42:26 UTC
Sorry for the delayed action on this one... bug was lost in bugzilla.
.Xdefaults is obsolete.  It has been replaced with .Xresources for quite
some time.  Rename your .Xdefaults file to .Xresources

For details: man xinit


Note You need to log in before you can comment on or make changes to this bug.