This forum has been archived. All content is frozen. Please use KDE Discuss instead.

dcop ktorrent 3.1.3?

Tags: None
(comma "," separated)
kokurya-kai
Registered Member
Posts
2
Karma
0

dcop ktorrent 3.1.3?

Sat Oct 18, 2008 7:59 pm
Hi!
I used a script based on dcop to start and stop my ktorrent from the command line to get around a speedlimiter.
As 3.1.3 isn't listet in dcop anymore?!
Is there another way to do something like this:
Code: Select all
while true; do
dcop ktorrent KTorrent startAll 3;
sleep 300;
dcop ktorrent KTorrent stopAll 1;
sleep 3;
dcop ktorrent KTorrent stopAll 1 && dcop ktorrent KTorrent stopAll 1;
sleep 300;
done


greets kai
George
Moderator
Posts
5421
Karma
1

Sun Oct 19, 2008 10:11 am
DCOP is dead, DBus is the new way :

qdbus org.ktorrent.ktorrent /core startAll

Use qdbusviewer to get an overview of what is possible.
kokurya-kai
Registered Member
Posts
2
Karma
0

Sun Oct 19, 2008 2:22 pm
thx for the quick reply.

qdbus org.ktorrent.ktorrent /KTorrent stopAll
and
qdbus org.ktorrent.ktorrent /KTorrent startAll
are working.
But is it somehow possible to just stop the downloads and not the uploads too?
With dcop I had to use 1 or 3 but this doesn't seem to work anymore and also qdbusviewer hasn't a possibility to use a variable for the commands startAll and stopAll :/

thx kai


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot]