Re: changing proxy settings of konqueror in a shell script

2004-05-14 Thread Kevin Krammer
On Thursday 13 May 2004 17:11, Tobias Kraus wrote:
 Am Donnerstag, 13. Mai 2004 16:13 schrieb Ben Burton:
   I have to tell konqueror to re-read kioslaverc. For this, I
   wanted to use dcop, but I couldn't find the correct function to
   call in kdcop - if there is one.
 
  dcop konqueror-pid KonquerorIface reparseConfiguration
 
  Does this do what you want?

 I have already tried this one, but it didn't work. Maybe it makes
 konqueror to reread konquerorrc.

Correct.
You change the settings of the slaverc, so you have to re-read this one.
see the KIO:Scheduler Interface from Konqueror's DCOP interfaces.

Cheers,
Kevin


pgprPmEzJKptz.pgp
Description: signature


Re: changing proxy settings of konqueror in a shell script

2004-05-13 Thread Adeodato Simó
* Tobias Kraus [Thu, 13 May 2004 14:49:20 +0200]:

 not change). This can be achieved by changing the ProxyType setting 
 (from 0 to 2 and vice versa) in ~/.kde/share/config/kioslaverc:

  Just in case:

$ sed -ie 's/ProxyType=0/ProxyType=2/' ~/.kde/share/config/kioslaverc

 I have to tell konqueror to re-read kioslaverc. For this, I wanted to 
 use dcop, but I couldn't find the correct function to call in kdcop - 
 if there is one.

  I know pretty little about KDE internals but:

1. Have you tried what happens if you edit the file by hand? I know
   KDE monitors changes in files under ~/.kde, so perhaps it would
   detect the changes automagically. If not, what happens if you
   restart konqueror?

2. If the above doesn't work, you can try `dcop kded kbuildsycoca
   recreate`. I'm not sure what this does exactly, but kbuildsycoca
   is KDE's cache or sth. like that, so it may be worth trying.

  hth someway.

-- 
Adeodato Simó
EM: asp16 [ykwim] alu.ua.es | PK: DA6AE621
 
# nobody is perfect
$ su - nobody




Re: changing proxy settings of konqueror in a shell script

2004-05-13 Thread Tobias Kraus
Am Donnerstag, 13. Mai 2004 15:26 schrieb Adeodato Simó:
 * Tobias Kraus [Thu, 13 May 2004 14:49:20 +0200]:
  not change). This can be achieved by changing the ProxyType
  setting (from 0 to 2 and vice versa) in
  ~/.kde/share/config/kioslaverc:

   Just in case:

 $ sed -ie 's/ProxyType=0/ProxyType=2/'
 ~/.kde/share/config/kioslaverc

I didn't care about this yet - but I knew it wouldn't be difficult ;-) 
Thanks


  I have to tell konqueror to re-read kioslaverc. For this, I
  wanted to use dcop, but I couldn't find the correct function to
  call in kdcop - if there is one.

   I know pretty little about KDE internals but:

 1. Have you tried what happens if you edit the file by hand? I
 know KDE monitors changes in files under ~/.kde, so perhaps it
 would detect the changes automagically. If not, what happens if you
 restart konqueror?

I wanted the changes to take effect immediately - I use laptop-net to 
configure my network interface automatically when my laptop is 
plugged in. After reconfiguring my interface, the proxy settings 
should be changed automatically without any user interaction...


 2. If the above doesn't work, you can try `dcop kded
 kbuildsycoca recreate`. I'm not sure what this does exactly, but
 kbuildsycoca is KDE's cache or sth. like that, so it may be worth
 trying.

no, didn't work, but thank you!

Tobias


   hth someway.

 --
 Adeodato Simó
 EM: asp16 [ykwim] alu.ua.es | PK: DA6AE621

 # nobody is perfect
 $ su - nobody

-- 
Diese Email-Adresse dient nur als Spam-Ziel.
Nachrichten an diese Adresse werden nicht gelesen!

This email address is a spam-tarpit.
Mails sent to this address are not read!




Re: changing proxy settings of konqueror in a shell script

2004-05-13 Thread Ben Burton

 I have to tell konqueror to re-read kioslaverc. For this, I wanted to 
 use dcop, but I couldn't find the correct function to call in kdcop - 
 if there is one.

dcop konqueror-pid KonquerorIface reparseConfiguration

Does this do what you want?

b.




Re: changing proxy settings of konqueror in a shell script

2004-05-13 Thread Mickael Marchand
look at kded-proxyscout-reset()
it seems to do what you want.

Cheers,
Mik

Le jeudi 13 Mai 2004 14:49, Tobias Kraus a écrit :
 Hi all,
 does anyone know how to change the proxy settings of konqueror
 (kde3.2) from within a shell script. Actually, I need to change from
 direct internet connection to using a proxy (defined in a
 autoconfiguration script downloaded from a webserver - this url does
 not change). This can be achieved by changing the ProxyType setting
 (from 0 to 2 and vice versa) in ~/.kde/share/config/kioslaverc:

 ---8x---

   [Proxy Settings]
   ProxyType=0

 ---8x---

 I have to tell konqueror to re-read kioslaverc. For this, I wanted to
 use dcop, but I couldn't find the correct function to call in kdcop -
 if there is one.

 Can anyone help?

 Thanks in advance,

 Tobias

 --
 Diese Email-Adresse dient nur als Spam-Ziel.
 Nachrichten an diese Adresse werden nicht gelesen!

 This email address is a spam-tarpit.
 Mails sent to this address are not read!




Re: changing proxy settings of konqueror in a shell script

2004-05-13 Thread Tobias Kraus
Am Donnerstag, 13. Mai 2004 16:13 schrieb Ben Burton:
  I have to tell konqueror to re-read kioslaverc. For this, I
  wanted to use dcop, but I couldn't find the correct function to
  call in kdcop - if there is one.

 dcop konqueror-pid KonquerorIface reparseConfiguration

 Does this do what you want?

I have already tried this one, but it didn't work. Maybe it makes 
konqueror to reread konquerorrc.

Thank you anyway,
Tobias


 b.

-- 
Diese Email-Adresse dient nur als Spam-Ziel.
Nachrichten an diese Adresse werden nicht gelesen!

This email address is a spam-tarpit.
Mails sent to this address are not read!