Hi, On Friday, 2011-09-09, Osvaldo Martin wrote: > Hi, > > Googling kioslaverc I found that there is a command to read from that file, > in order to extract the http proxy settings I should use this command: > > "kreadconfig --file kioslaverc --group Proxy\ Settings --key httpproxy" > > this will return the http host and the port, If the user is ussing and > authentication proxy conecction it will give also the username and > password? I guess so. > It this command available by default or require the installation some extra > package? Yes, kreadconfig is part of all KDE installations. However it only returns a value from a config file, it does not interpret the config. For example the attached config is my own, but proxy is disabled (I guess ProxyType=0 means disabled). If you need more information on KDE proxy handling I suggest you ask on the kde-core-devel mailing list. Cheers, Kevin > > thanks. > > On Fri, Sep 9, 2011 at 4:46 AM, Osvaldo Martin <aloctavodia@xxxxxxxxx>wrote: > > Hi Kevin, > > > > Thanks for your answer > > > > Let me give you a little of background I am writing code in Python. The > > idea is to try to avoid asking the user to set the proxy, I already solve > > this for gnome (and may be for Windows and Mac Osx...) do you know how to > > get the proxy setting from this kioslaverc file? or may be could you send > > me an example of that file? (I am using gnome). Thanks. > > > > On Fri, Sep 9, 2011 at 4:26 AM, Kevin Krammer <kevin.krammer@xxxxxx>wrote: > >> On Friday, 2011-09-09, Osvaldo Martin wrote: > >> > Hi, > >> > > >> > Proxy setting can be stored in the environment variable HHTP_PROXY (I > >> > >> think > >> > >> > this works in every Linux), but in GNOME the proxy setting co > > > > uld be > > > >> > configured using "Network Proxy Preference" in that case proxy setting > >> > >> are > >> > >> > stored inside Gconf. KDE uses environment variable HHTP_PROXY and/or > >> > >> other > >> > >> > place to store proxy settings? > >> > >> KDE stores its proxy settings in a file called kioslaverc, usually > >> located in > >> $HOME/.kde/share/config or $HOME/.kde4/share/config > >> > >> Cheers, > >> Kevin > >> -- > >> Kevin Krammer, KDE developer, xdg-utils developer > >> KDE user support, developer mentoring > >> > >> ___________________________________________________ > >> This message is from the kde mailing list. > >> Account management: https://mail.kde.org/mailman/listinfo/kde. > >> Archives: http://lists.kde.org/. > >> More info: http://www.kde.org/faq.html. -- Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring
PersistentProxyConnection=false [$Version] update_info=kioslave.upd:kde2.2/r1,kioslave.upd:kde2.2/r2,kioslave.upd:kde2.2/r3 [Notification Messages] WarnOnLeaveSSLMode=false [Proxy Settings] AuthMode=0 NoProxyFor= Proxy Config Script= ProxyType=0 ReversedException=false ftpProxy= httpProxy=http://proxy.vc-graz.ac.at:3128 httpsProxy=
Attachment:
signature.asc
Description: This is a digitally signed message part.
___________________________________________________ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.