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

Python, amarok, dbus

Tags: None
(comma "," separated)
matio
Registered Member
Posts
1
Karma
0

Python, amarok, dbus

Fri Mar 13, 2009 4:46 pm
How do you use dbus with amorok in python? I'm trying to do this:
dbus-send --type=method_call --dest=org.kde.amarok /Player org.freedesktop.MediaPlayer.Next
only in python
thomas.dub
Registered Member
Posts
14
Karma
0

Re: Python, amarok, dbus

Tue Sep 01, 2009 11:29 pm
Hy,

I've adapted a python script to work with DBUS in place of DCOP.

Code: Select all
import dbus
am = dbus.SessionBus().get_object('org.kde.amarok','/Player')
am.Play()
am.Pause()
etc..


You can find all DBUS functions with this command :
qdbus org.kde.amarok /Player

Good Luck


Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], markhm, Sogou [Bot], Yahoo [Bot]