?

Log in

Thu, Sep. 27th, 2007, 07:29 pm
6ferrets: Starting/stopping programs with the screen saver?

Is there a way to get other programs start and stop when the screen saver does?

Specifically, I want ktorrent to run only when the screen saver does (so that it won't suck up bandwidth while I'm at the computer). I haven't found anything like this in the screen saver docs, and I haven't found any docs for ktorrent.

Fri, Sep. 28th, 2007 08:10 am (UTC)
ex_petrpopo

You can use DCOP for controlling ktorrent. If ktorrent is runnig, you can use dcop ktorrent KTorrent for obtaining a list of dcop service commands for ktorrent.
So, "dcop ktorrent KTorrent stopAll 1" will stop all current downloads, and "dcop ktorrent KTorrent startAll 1" will run them again.
So, if you find any docs about scrrensaver - to find any place where you can paste such commands - you can use them to control ktorrent..)
May be, it also can be done using DCOP, I don't know yet..)
(Deleted comment)