[PATCH] twm dynamic config files

Preston Crow pc-xorg11 at crowcastle.net
Tue Jun 7 12:24:29 PDT 2011


I've long been frustrated that twm has no option for preprocessing
config files, so as to allow includes, automatic variations based on
location, and such.  At one time, I thought it would make sense to use
the C preprocessor, but I've come up with a much simpler solution:  If
the config file is executable, run it and use the output instead of
using the file itself.  This allows users to generate their config files
using whatever dynamic methods they like without any impact on existing
configurations.

I've attached a patch.  I tried to keep the patch consistent in
programming style.  I did not update any documentation or make this a
configuration option, as I'm not up to speed on autoconf, though the
ability to use popen() probably should be checked in the configuration
script.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: twm_popen.patch
Type: text/x-patch
Size: 1645 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110607/bdf9e049/attachment.bin>


More information about the xorg-devel mailing list