Thursday, October 12, 2006

Rhythmbox 0.9.6: a plugin for Gajim status message

I recently switched to Ubuntu Edgy, the new release of Ubuntu Linux. Edgy is still in beta, but works well here on my laptop.
One of the new applications that comes with Gnome 2.16 is Rhythmbox 0.9.6, the default Gnome music player. This new release has plugins support: plugins can be written in c or using the python binding.
Python is very simple, so I wrote a simple plugin that changes the status message of Gajim Jabber client according with the song you are playing in Rhythmbox.
This little piece of code uses dbus to communicate with Gajim, gconf to save the configuration and glade for the user interface.
It is a 0.1 version, so keep it "as is". It just works, and shows how to use some Rhythmbox features from a python plugin.
To try it, just extract the package into your ~/.gnome2/rhythmbox/plugins/ folder and start the player. That's all.

UPDATE to version 0.2: some make up to the code and added the possibility to customize the "no music" message.

UPDATE to version 0.3: Waiting for Gajim 0.11, I upgraded the plugin to v0.3. This version provides a [paused] message when you stop rhythmbox and some minor bug fixes.

3 Comments:

Nikos Kouremenos said...

Hi, and good job. Since it is better that we speak to Player, and not player speak to us (via gajim-remote) [at least if they keep their API stable], we now do this in SVN for Rhythmbox and Muine. You're welcome to try and report errors.

I 'm thinking of leaving the link from the wiki to this blog and script until 0.11 is out with the hope most distros will enable dbus api of rhythmbox/muine.

Thanks again for hacking on Gajim,

Nikos Kouremenos
xmpp:nkour@jabber.lagaule.org

October 20, 2006 12:02 PM  
gary said...

Hi, it will by very nice if gajim status message changer could operate with more than one account. I have two accounts and one of them I use only in work. And if Rhythmbox changes track, gajim tries to connect the second account. Gajim status changer don't respect account settings (Synchronize account status with global status).

I look forward for 0.4 :-)
Thanks a lot for a good job.

gary

November 29, 2006 1:36 PM  
Madchicken said...

Yes, I know...I'll update the plugin soon. I was very busy in the last month.
Thank you very much for reporting this bug.

December 01, 2006 6:54 PM  

Post a Comment

Links to this post:

Create a Link

<< Home