Page 1 of 1

Avant Window Navigator Media Control applet with Guayadeque

Posted: Tue Oct 05, 2010 10:34 pm
by Snooze
Hi guys.

I modified AWN's Media Control applet to job with Guayadeque. I'll submit it to awn extras soon, but there's just one little thing I still want to bug anonbeat about (nothing to do with album art this time). If anybody uses AWN and feel they can't wait for this, or want to help with testing the applet. Send me a message on the site or the IRC channel.

Here's a demo video:
http://www.youtube.com/watch?v=fhrUqrCtlkk

Avant Window Navigator Media Control applet with Guayadeque

Posted: Tue Oct 05, 2010 10:50 pm
by anonbeat
What is the problem with it ? How can I help?

Avant Window Navigator Media Control applet with Guayadeque

Posted: Wed Oct 06, 2010 12:01 am
by Snooze
The applet allows you to launch your media player from the applet itself if it isn't open yet. By checking which players are available on your system.

It does so by checking media players' object paths registered with the DBus object ('org.freedesktop.DBus', '/org/freedesktop/DBus'). Some players show up here even if the player isn't running yet.

I don't know wheter I'm making sense, so here's some python code. I run this code with neither Banshee or Guayadeque running.

>>> import dbus
>>> bus_obj = dbus.SessionBus().get_object('org.freedesktop.DBus', '/org/freedesktop/DBus')
>>> ACTIVATABLE_SERVICES = bus_obj.ListActivatableNames()
>>> 'org.mpris.guayadeque' in ACTIVATABLE_SERVICES
False
>>> 'org.bansheeproject.Banshee' in ACTIVATABLE_SERVICES
True

The mechanics of all of this goes over my head a bit. I've been struggling to find good documentation on DBus. What I have found is either very basic and doesn't cover this, or very complex and difficult for me to understand.

Would it be possible to do something like this with Guayadeque? If not is there any other way of knowing whether a user has Guayadeque installed on their system without having Guayadeque running at that moment?

Avant Window Navigator Media Control applet with Guayadeque

Posted: Thu Oct 07, 2010 2:37 am
by Snooze
Nothing?

Avant Window Navigator Media Control applet with Guayadeque

Posted: Thu Oct 07, 2010 3:00 am
by anonbeat
Sorry havent seen your post till now. I will look into this and post about it.

Avant Window Navigator Media Control applet with Guayadeque

Posted: Thu Oct 07, 2010 3:08 am
by Snooze
Thank you. Sorry for the shameless bump.

Avant Window Navigator Media Control applet with Guayadeque

Posted: Mon Jan 31, 2011 10:17 pm
by tiliqua
How's this going Snooze? It'd be fantastic to have the AWN media applet play nice with Guayadeque!

I'm willing to help test. I'm running Ubuntu 10.04 with AWN from the awn-testing ppa (0.4.1~bzr820+201101220039~lucid1) and Guayadeque compiled from SVN (I update fairly regularly).

You might want to take a look at the source for Panflute (gnome panel applet). It can determine if Guayadeque is installed without having to have the player running.