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

Pause and Unpause Ktorrent from cli

Tags: None
(comma "," separated)
Poopsie
Registered Member
Posts
30
Karma
0

Pause and Unpause Ktorrent from cli

Sun Apr 12, 2009 5:54 pm
I'm trying to figure out how to pause and unpause ktorrent from cli (Ktorrent 3.2.1).

I've got cron running some rsyncs in a bashscript and all I want to do is add the pause ktorrent at the start of the bash script and unpause it at the end of the script.

I have tried

qdbus org.ktorrent.ktorrent /core setPaused true

but that actually stops them and

qdbus org.ktorrent.ktorrent /core setPaused false

doesn't unpause them they just sit there marked as completed


Any insight would be appreciated.
George
Moderator
Posts
5421
Karma
1

Mon Apr 13, 2009 10:49 am
This is a bug in qdbus, it always sends true no matter what you pass as parameter.
Poopsie
Registered Member
Posts
30
Karma
0

Mon Apr 13, 2009 12:55 pm
George wrote:This is a bug in qdbus, it always sends true no matter what you pass as parameter.


Do you know if a bug has been reported about this to the KDE guys?
George
Moderator
Posts
5421
Karma
1

Wed Apr 15, 2009 7:53 am
Poopsie wrote:
George wrote:This is a bug in qdbus, it always sends true no matter what you pass as parameter.


Do you know if a bug has been reported about this to the KDE guys?


It needs to be reported to trolltech (Qt people), I'm not sure if this was reported.
aindilis
Registered Member
Posts
1
Karma
0
This worked to unpause

dbus-send --type=method_call --dest=org.ktorrent.ktorrent /core org.ktorrent.core.setPaused boolean:false


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]