[Kde-kiosk] Re: API for editing KDE configuration files

Waldo Bastian bastian at kde.org
Tue Apr 26 13:25:42 CEST 2005


On Tuesday 26 April 2005 08:39, Taru Jain wrote:
> Hi,
>
> Thanks for your replies :-)
>
> I have another query. I see that the KConfig class provides APIs to
> read from a *given* configuration file. For a user, the kde
> configurations can be picked up from multiple sources (like KDEDIRS &
> KDEHOME etc). To get the final set of configuration keys applicable to a
> user, these configurations files are merged in a specifc order.
>
> Is there a way to get a dump of these final set of keys for a user?

There is no command line tool for that (yet) but something like:

	KConfig cfg("<config file you are interested in>");
        KConfig *newCfg = cfg.copyTo("/home/bastian/config.dump");
        newCfg->sync();
        delete newCfg;

should give you what you want.

Cheers,
Waldo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-kiosk/attachments/20050426/d183dec6/attachment.pgp


More information about the kde-kiosk mailing list