[PATCH] kreadconfig and kwriteconfig

Waldo Bastian bastian at kde.org
Fri Feb 21 14:22:00 GMT 2003


On Friday 21 February 2003 11:49, Luis Pedro Coelho wrote:
> Hi,
>
> This is a submission for kdebase/kreadconfig. It is a brother for
> kreadconfig called kwriteconfig. My initial motivation was wanting to write
> a a few commands on an email for someone (actually I was expecting
> kwriteconfig to be there), but the use in shell scripts is obvious as well.

Good idea, committed to CVS after some small modifications.

It might be worth to mention that writing to KGlobal::config() (despite its 
name) does NOT write to kdeglobals by default. KGlobal::config() reads a 
combinition of kdeglobals and the rc-file of the app (in this case 
kwriteconfigrc), and any changes are normally written to kwriteconfigrc 
unless you specifically ask writeEntry to write to the global file.

I changed it so that it explicitly opens kdeglobals instead.

Thanks for your contribution.

Cheers,
Waldo
-- 
bastian at kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian at suse.com





More information about the kde-core-devel mailing list