Comment 15 for bug 48682

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

Hi Chucky,

that sounds somewhat like a wrapper around a wrapper in my ears.

Well I just fooled around a bit and found out, that the proxy settings are stored in ~/.kde/share/config/kioslaverc...

ancoron@bitch:~$ cat .kde/share/config/kioslaverc
PersistentProxyConnection=false

[$Version]
update_info=kioslave.upd:kde2.2/r1,kioslave.upd:kde2.2/r2,kioslave.upd:kde2.2/r3

[Proxy Settings]
AuthMode=0
NoProxyFor=blizzard.com,deviantart.com
Proxy Config Script=http://proxy.test.net:8080/test.pac

# the following is the type of the configuration where
# 0 = direct connection (no proxy)
# 1 = manual configuration
# 2 = configuration script
# 3 = automatic proxy configuration
ProxyType=1

# the following is "true" if the proxy is only used for the sites in "NoProxyFor"
ReversedException=false

# the following variables store the proxy settings for manual configuration
ftpProxy=http://proxy.test.net:8080
httpProxy=http://proxy.test.net:8080
httpsProxy=http://proxy.test.net:8080

I then googled again and found out that there is a command line tool called "kreadconfig". So I tried:

ancoron@bitch:~$ kreadconfig --file kioslaverc --group Proxy\ Settings --key httpProxy
http://proxy.test.net:8080
ancoron@bitch:~$ kreadconfig --file kioslaverc --group Proxy\ Settings --key ProxyType
1
ancoron@bitch:~$

Well, that's all we need, don't we?

If that command gets used in the scripts that invoke apt and the like the problem could be solved (at least I think that).

In addition there is the kioslave subsystem which should automatically apply the proxy settings. That would be another option for adept to use for access to the repos (but that would change implementation and not just configuration).

Ancoron