Avant Window Navigator Media Control applet with Guayadeque

General discussions
Post Reply
Snooze
Posts: 14
Joined: Mon Oct 04, 2010 6:37 am

Avant Window Navigator Media Control applet with Guayadeque

Post by Snooze » Tue Oct 05, 2010 10:34 pm

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

User avatar
anonbeat
Posts: 1960
Joined: Thu Sep 16, 2010 9:47 pm

Avant Window Navigator Media Control applet with Guayadeque

Post by anonbeat » Tue Oct 05, 2010 10:50 pm

What is the problem with it ? How can I help?

Snooze
Posts: 14
Joined: Mon Oct 04, 2010 6:37 am

Avant Window Navigator Media Control applet with Guayadeque

Post by Snooze » Wed Oct 06, 2010 12:01 am

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?

Snooze
Posts: 14
Joined: Mon Oct 04, 2010 6:37 am

Avant Window Navigator Media Control applet with Guayadeque

Post by Snooze » Thu Oct 07, 2010 2:37 am

Nothing?

User avatar
anonbeat
Posts: 1960
Joined: Thu Sep 16, 2010 9:47 pm

Avant Window Navigator Media Control applet with Guayadeque

Post by anonbeat » Thu Oct 07, 2010 3:00 am

Sorry havent seen your post till now. I will look into this and post about it.

Snooze
Posts: 14
Joined: Mon Oct 04, 2010 6:37 am

Avant Window Navigator Media Control applet with Guayadeque

Post by Snooze » Thu Oct 07, 2010 3:08 am

Thank you. Sorry for the shameless bump.

tiliqua
Posts: 21
Joined: Wed Dec 08, 2010 5:31 pm

Avant Window Navigator Media Control applet with Guayadeque

Post by tiliqua » Mon Jan 31, 2011 10:17 pm

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.

Post Reply