Automatic proxy configuration for KDE (cont.)

Kevin Krammer kevin.krammer at gmx.at
Wed Jul 13 08:40:28 BST 2005


On Tuesday 12 July 2005 18:29, Andy Teijelo PĂ©rez wrote:
> Kevim Krammer said:
> > Try this
> > dcop $(dcopfind -a konqueror-*) KIO::Scheduler reparseSlaveConfiguration
> > http
>
> Although I didn't know about dcopfind (which... wow, it's great), I did
> send that dcop message to the Konqueror instance I had opened, and it
> didn't work. But, I have just tried it now and it works. I must have done
> something wrong the last time. Anyway, that's a Konqueror only solution.
> But I need Amarok, Akregator and maybe others to know about the change. Is
> there a way, using dcopfind or anything else, to find all open applications
> with a
> KIO::Scheduler object to send the message to?

A brute force method would be

----------
#!/bin/bash

APPS=$(dcop)

for app in $APPS; do
    dcop $app KIO::Scheduler reparseSlaveConfiguration http;
done;
---------

> > Another possibility might be to use the output of a script instead of a
> > value
> > in the configuration file.
> > KDE's config system supports that.
> > Not sure though how often this would be evaluated.
>
> Sorry, I didn't understand that. Would that be something like
> httpProxy=$(something) in ~/.kde/share/config/kioslaverc?

Almost. Look for Shell expansion in this document;
http://www.kde.org/areas/sysadmin/config_file.php

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: <http://mail.kde.org/pipermail/kde/attachments/20050713/a3f736eb/attachment.sig>
-------------- next 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.


More information about the kde mailing list