[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Dollar expansion (Was: Registry editor)
From:       Waldo Bastian <bastian () kde ! org>
Date:       2002-04-28 4:33:36
[Download RAW message or body]

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@kde.org  |   SuSE Labs KDE Developer  |  bastian@suse.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic