Re: [kde] Changing the Web browsers cache setting through dcop



On Tuesday 21 November 2006 21:06, Michael Stucki wrote:
Hi folks,

I have written a small script that checks for a network connection during
suspend/resume.

If there is no network, kmail will be configured to be offline, for
example.

This works pretty good using these commands:
| /usr/bin/dcop --user <myuser> kmail KMailIface stopNetworkJobs
| /usr/bin/dcop --user <myuser> kmail KMailIface resumeNetworkJobs

Now I would like to configure the konqueror cache in a same way. I can
change this setting through

kcontrol -> Internet & Network -> Web Browser -> Cache

However, I didn't find a way to control this via dcop. Does anybody know if
it is possible?

Cache settings could be part of a configuration file, possibly one for the IO
slaves.

One can use kwriteconfig to change values in those files, however having
application reload them might be difficult (possible though, there is a
script on kde-apps.org which does this to re-read proxy settings)

Cheers,
Kevin

--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring

Attachment: pgp5ShsF9CRdj.pgp
Description: PGP signature

___________________________________________________
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.

Relevant Pages

  • Re: [kde] Problem with startkde ~/.kde/env/*.sh and environment sanitizing
    ... This script contains: ... I see that this variable is no longer in the environment when attempting ... Kevin Krammer, KDE developer, xdg-utils developer ...
    (KDE)
  • Re: [kde] konqueror: copying files in sequence
    ... For exampe imagine that you want to transfer files over a network connection. ... click a file and "Add to action queue" and have the number of its queue index ... Kevin Krammer, KDE developer, xdg-utils developer ...
    (KDE)
  • Re: [kde] Changing file association for all media files
    ... I'd have to write a script that would change this ... That may be doable in Perl. ... Kevin Krammer, KDE developer, xdg-utils developer ...
    (KDE)
  • Re: SMB connection failed
    ... >> right before KDE is started? ... That script is actually run just before going into runlevels so he has no ... network connection when that is run and therefore smbmounting would fail ...
    (alt.os.linux.suse)
  • Re: [kde-linux] Lost /etc/init.d/kdm
    ... I probably modified that to point to the konstructed kdm. ... I can easily enough simply run kdm from my own catchall-looseends script I ... Kevin Krammer, KDE developer, xdg-utils developer ...
    (KDE)