[Banshee-List] Help with Banshee & D-Bus.
- From: "Grant Murphy" <grantcmurphy gmail com>
- To: banshee-list gnome org
- Subject: [Banshee-List] Help with Banshee & D-Bus.
- Date: Tue, 18 Mar 2008 16:40:22 +1000
Hi,
I would like to implement a bit of a hack to get banshee to pause/play when lock/unlock my screen. I am thinking I should be able to do this using the d-bus pretty easily..however have not been able to find out much info regarding how to work with dbus & banshee..If I listen to all signals emitted by the org.gnome.Banshee interface and play / pause (etc) tracks I don't seem be getting anything:
gmurphy nourae:~$ dbus-monitor --session --monitor "interface=org.gnome.Banshee"
signal sender=org.freedesktop.DBus -> dest=:1.38 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
string ":1.38"
Whilst if I do the same for the gnome screen saver and lock / unlock my screen i get heaps of info:
gmurphy nourae:~$ dbus-monitor --session --monitor "interface=org.gnome.ScreenSaver"
signal sender=org.freedesktop.DBus -> dest=:1.39 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
string ":1.39"
method call sender=:1.40 -> dest=org.gnome.ScreenSaver path=/org/gnome/ScreenSaver; interface=org.gnome.ScreenSaver; member=Lock
signal sender=:1.6 -> dest=(null destination) path=/org/gnome/ScreenSaver; interface=org.gnome.ScreenSaver; member=SessionIdleChanged
boolean true
signal sender=:1.6 -> dest=(null destination) path=/org/gnome/ScreenSaver; interface=org.gnome.ScreenSaver; member=ActiveChanged
boolean true
signal sender=:1.6 -> dest=(null destination) path=/org/gnome/ScreenSaver; interface=org.gnome.ScreenSaver; member=AuthenticationRequestBegin
signal sender=:1.6 -> dest=(null destination) path=/org/gnome/ScreenSaver; interface=org.gnome.ScreenSaver; member=AuthenticationRequestEnd
signal sender=:1.6 -> dest=(null destination) path=/org/gnome/ScreenSaver; interface=org.gnome.ScreenSaver; member=SessionIdleChanged
boolean false
signal sender=:1.6 -> dest=(null destination) path=/org/gnome/ScreenSaver; interface=org.gnome.ScreenSaver; member=ActiveChanged
boolean false
So I guess my question is what signal to I send to the Banshee interface to get the player to pause / play ?
So for example if I run the following I can lock my screen...
dbus-send --session --dest=org.gnome.ScreenSaver --type=method_call --print-reply --reply-timeout=20000 /org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock boolean:true
So how can I do something similar for the Banshee player?
Thanks,
Grant.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]