Dollar expansion (Was: Registry editor)

Waldo Bastian bastian at kde.org
Sun Apr 28 05:33:36 BST 2002


On Saturday 27 April 2002 06:19 pm, Zack Rusin wrote:
> The last one brings one important point, more
> applications should use "setDollarExpansion" in the config in order to
> make this tool really useable.

They all do since yesterday.

Just append [$e] (expand) to the key and $ENV_VARS will automatically be 
expanded.

E.g. if you had:
	hostname=Wantelbos

you can now use
	hostname[$e]=$HOSTNAME

And $HOSTNAME will be expanded at runtime.

For completeness: You can also add [$d] (deleted) to pretend the entry was 
never specified in a config file.

E.g.:
	hostname[$d]

And you can add [$i] (immutable) to mark that an entry may not be modified. 
Immutable and expand can be combined as [$ie] or [$ei].
E.g.:
	hostname[$ie]=$HOSTNAME

Will ensure that the entry can not be modified via KConfig.

Cheers,
Waldo
-- 
bastian at kde.org  |   SuSE Labs KDE Developer  |  bastian at suse.com





More information about the kde-core-devel mailing list