RFC: KConfig XT (KDE 3.2)
nolden at kde.org
Sun Mar 16 15:37:21 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
On Saturday 15 March 2003 16:38, Waldo Bastian wrote:
> Your feedback is appreciated. See also kdecore/DESIGN.kconfig
> Plan A
> Instead of relying on the defaults that are hard-coded in the application,
> rely on default configuration files being installed in $KDEDIR. The
> technical changes required for this are very minimal, it is mostly a change
> in policy.
That's the plan that I already proposed last year. Nothing really happened to
that because the requirement was that
a) the default values are still hardcoded in the application so the programmer
only needs to have one place to keep track of them
b) add the ability during the make install process to dump *all* values into
the config file that gets installed.
This way you're making absolutely sure that even if the config file is missing
the application runs without coredumping or misbehaving due to a missing
config file. This is an absolute requirement.
The second is that you need to make sure that even when you change or add a
setting that this will end up in the default config file without the
programmer making the mistake of only changing the value in the code but not
the default config file. Therefore the best is to call the application with a
- --dump-config or --dump-defaults during make install or in the make process
to actually write the defaults file.
Maybe that helps bringing up the ideas from last year again.
> Type information can be provide by preceding every entry with a formalized
> Work to be done:
> * KConfig needs to be extended to provide access to the default values
> provided by the default config files. KConfig already stores this
> information internally.
> * A formal comment structure needs to be designed that can convey
> type-information. Preferably in such a way that it is easily parsable by
> both machine and user.
> * KConfig needs to be extended, or another class created, that is able to
> parse the formalized comments.
> * A tool needs to be developed that can assist developers with the
> generation and verification of default configuration files that include
> * We rely on default configuration files being properly installed.
> Plan B
> There is no plan B.
We're not a company, we just produce better code at less costs.
nolden at kde.org
The K Desktop Environment The KDevelop Project
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the kde-core-devel