no non-gui way of changing kde4 proxy settings

Bug #309742 reported by thefish
2
Affects Status Importance Assigned to Milestone
kde4libs (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: kde4libs

Using KDE 4.2 beta 2 on Kubuntu 8.10

Expected Behaviour:
Some ability to change proxy settings with a bash/python/whatever script, or quick console one-liner

It seems the only way to change proxy settings in KDE4 is with the system settings/network settings gui, which stops any nice easy ways to swap between proxies for different locations etc.

Revision history for this message
Terence Simpson (tsimpson) wrote :

The setting are held in ~/.kde/share/config/kioslaverc, so you could just edit that.
Keep in mind that these settings will only effect your KDE session, not the system or anyone else's. That's why it's completely normal for it to be configurable from the GUI.
If you wanted more flexibility you could use something more advanced, like a .PAC script http://en.wikipedia.org/wiki/Proxy_auto-config

Changed in kde4libs:
status: New → Invalid
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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.