[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: xrdb questions



On Thu, Mar 02, 2006 at 10:02:59AM -0600, Robert D. Crawford wrote:
> Andrew Cady <d@jerkface.net> writes:
> 
> > Please re-read my post.  I know you don't want the resources cleared.
> > That's why I told you how to avoid it!
> 
> I am still not sure how the information will help my problem.  Will the
> resources persist across reboots or logging out of X? 

X resources are stored in the X server.  When the X server is
started, there are none set; when it is reset, they are cleared.
The program xrdb is responsible for setting them.  It should be run
automatically upon X login.  (The Debian X session script will do
this; the script is documented in Xsession(5) and the relevant file is
/etc/X11/Xsession.d/30xfree86-common_xresources).  If xrdb is run before
another client connects, the -retain option must be used.  This seems
to be a problem that occurs when people write their own X sessions, for
some reason.  However, reading that (below) I think -retain may not be
the fix.  Not sure why I thought it was, but anyway...

> Since the last x client is the wm, the settings persist as long as I
> am using X.  My problem is that when I log in, which is pretty rarely
> as the machine is up all the time and is rarely rebooted, emacs must
> be closed and restarted for my settings to be in effect.

Do you mean you launch emacs in your X session?  It sounds like you just
have to make sure xrdb runs (and finishes) before emacs starts.  Your
resources are getting set, just not in time, correct?



Reply to: