Comment 2 for bug 309742

Revision history for this message
Ancoron Luziferis (ancoron) wrote :

In addition to edit plain files there are the commands "kreadconfig" and "kwriteconfig" contained in package "kdebase-runtime-bin-kde4". The latter one can be used to persist configuration keys and it can be used from inside scripts.

E.g. if you want to set the HTTP proxy manually you would use the following commands:

kwriteconfig --file kioslaverc --group Proxy\ Settings --key httpProxy http://proxy.test.net:8181
kwriteconfig --file kioslaverc --group Proxy\ Settings --key ProxyType 1

...and to read it use the following...

kreadconfig --file kioslaverc --group Proxy\ Settings --key ProxyType
kreadconfig --file kioslaverc --group Proxy\ Settings --key httpProxy

^^ This is just for the reference if someone stumbles apon this bug while searching for an answer.