Honouring KDE proxy settings outside KDE

Kevin Krammer kevin.krammer at gmx.at
Tue Jun 14 18:49:26 BST 2005


On Sunday 12 June 2005 23:04, Tim Brown wrote:

> I'm developing a KDE service menu for del.icio.us
> (http://www.kde-apps.org/content/show.php?content=18909) which uses a perl
> script to add pages to a users del.icio.us bookmarks.
>
> My query is how to make my perl script honour the users KDE proxy
> settings.  Is there someway I can get the current settings via the command
> line using dcop or similar?  Another option would, I assume be to parse
> the kioslaverc config file, but this leaves me in trouble if the user has
> selected anything other than ProxyType=1.

Hmm, kreadconfig would only be like parsing the config without having to care 
about the file location.

You could use kfmclient copy URL tmpfile to download the webpage and parse it 
locally or use kioexec like
kioexec cat URL | yourprogram
or
kioexec yourprogram URL

Cheers,
Kevin

-- 
Kevin Krammer <kevin.krammer at gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtforum.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20050614/b44ad84c/attachment.sig>


More information about the kfm-devel mailing list