Thanks,
I actually just worked that out a little after my last post, and I was posting now with the solution, but i see you beat me to it. I just read the source code for kcontrol in kde-base. The source for it was clean and easy to follow which was a bonus and a nice change from some of the source code I have read before.
From reading the source code I also picked up that I should also call:
|
Source code
|
1
|
dcop kded proxyscout reset
|
I think you can just do this everytime, and the call will just fail when you don't have to do it.
The whole point of this script is for changing my proxy settings & connections settings depending on where I am with my laptop. Do you maybe know of an application that already exists?