Re: What's the Right Way to read resources on X startup?
Re: What's the Right Way to read resources on X startup?
- Subject: Re: What's the Right Way to read resources on X startup?
- From: Richard Cobbe <email@hidden>
- Date: Wed, 23 Jun 2010 22:12:41 -0400
- Mail-followup-to: email@hidden
On Wed, Jun 23, 2010 at 01:07:00PM -0400, Harald Hanche-Olsen wrote:
> + Richard Cobbe <email@hidden>:
>
> > On Mon, Jun 21, 2010 at 09:41:42AM -0400, robert delius royar wrote:
> > > Sun, 20 Jun 2010 (21:09 -0400 UTC) Richard Cobbe wrote:
> > >
> > > If you move your xterm-specific resource settings to ~/Xterm, does
> > > that solve your problem? I believe Thomas Dickey mentioned the
> > > ~/Xterm file a few years ago as the prefered way to set
> > > user-specific xterm resources at start up. It works for me on
> > > Debian and on OS X 10.4, 10.5, and 10.6.
> >
> > No, that doesn't help. Aside from the usability problem (do I really have
> > to have one file per X app cluttering up my home directory? Can we at
> > least make them dotfiles?), it fails to produce the desired behavior in a
> > very strange way.
>
> The standard way, I think, is to set up environment variable(s) to
> point applications in the right directory. I think you could set
> XAPPLRESDIR=$HOME/Library/X11/app-defaults/
> or something like that. There are also variables XFILESEARCHPATH and
> XUSERFILESEARCHPATH whose syntaxes are more arcane; see the "X" manual
> page for the details.
Ah -- that's useful information, thanks!
(Incidentally, I think I know why I was getting the weird settings from
~/Xterm -- I just cut-and-pasted the relevant entries from my .Xresources
file, which assumes it's being fed through cpp. The two properties that
wer obviously wrong (font & background color) are set using cpp macros.)
> Personally, I prefer to have X11 not run any application on startup.
> I just start X11 once per login session and never quit it. Thus I
> never see the race conditions associated with X11 startup.
I don't see how that can help -- sure, I don't start X that often, but I
still see the race condition every time I do.
Richard
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden