Adam Sampson writes:
> "Eric S. Raymond" <esr@thyrsus.com> writes:
>> If there were already a library in ths stock Python distribution to
>> digest .Xdefaults files I might consider this. Perhaps I'll write
>> one.
>
> No, please don't! .Xdefaults files as loaded by xrdb can contain cpp
> directives which can depend on the arguments given to xrdb ("xrdb
> -DBIGTERM .Xdefaults", for instance), so you can't assume that what
> you read from .Xdefaults is the user's setup, even if you emulate
> cpp. You also shouldn't assume that the user's HOME is on the machine
> where they loaded their resources from (suppose I start an X session
> on my workstation, then ssh over to a server and run CML2; it would
> then read server:~/.Xdefaults rather than workstation:~/.Xdefaults).
> It's much more sensible to use the normal X mechanisms for reading
> resources from the X server.
The above absurdity is exactly why newer toolkits don't bother
to support this config mechanism. There isn't any way to have
the app support an "Edit --> Preferences --> Save" with this.
If the Python/Tk stuff (or whatever it is Eric is using) doesn't
yet have a modern dotfile for this sort of thing, then we've just
stumbled across a nice project.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon Apr 23 2001 - 21:00:41 EST