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

Taru Jain tjain at novell.com
Tue Apr 26 08:39:34 CEST 2005


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?

Thanks & Regards
Taru




Message: 1
Date: Tue, 19 Apr 2005 12:09:12 +0200
From: Martijn Klingens <klingens at kde.org>
Subject: Re: [Kde-kiosk] API for editing KDE configuration files
To: kde-kiosk at kde.org 
Message-ID: <200504191209.17257.klingens at kde.org>
Content-Type: text/plain; charset="iso-8859-1"

On Tuesday 19 April 2005 11:53, Taru Jain wrote:
> I would like to know is there any API or command line tool available
> which can be used for manipulating the configuration files?
(something
> similar to what gconftool does in gconf)

The API is there: KConfig. That's what you can use from C++ code and
most of 
the bindings as well.

http://developer.kde.org/documentation/library/cvs-api/kdecore/html/classKConfig.html


A command line tool is not available. Sounds like a good idea though,
so if 
you have the time to create such a tool it'd be most welcome.

-- 
Martijn




Message: 2
Date: Tue, 19 Apr 2005 14:23:16 +0200
From: Waldo Bastian <bastian at kde.org>
Subject: Re: [Kde-kiosk] API for editing KDE configuration files
To: kde-kiosk at kde.org 
Message-ID: <200504191423.20800.bastian at kde.org>
Content-Type: text/plain; charset="iso-8859-1"

On Tuesday 19 April 2005 11:53, Taru Jain wrote:
> Hi,
>
> I would like to manipulate the KDE configuration files in order to
> lockdown some settings or to change the value of some keys. I am
aware
> that kiosktool allows to manage profiles graphically and
KConfigEditor
> allows to edit the values of the keys.
>
> I would like to know is there any API or command line tool available
> which can be used for manipulating the configuration files?
(something
> similar to what gconftool does in gconf)
>
> If this is not the right forum for this query then kindly let me
know
> which would be the more appropriate maling list.

In addition to the KConfig C++ class, there are also the 
kreadconfig/kwriteconfig commnad line tools. All of these work on the 
settings under $KDEHOME though, and none of them support changing
lockdown 
attributes.

I guess kiosktool could include a command line tool for manipulating
setting & 
lockdown attributes in profiles.

Cheers,
Waldo



More information about the kde-kiosk mailing list