dimanche 16 décembre 2007

GNOME Do + Banshee = Goodness!

Since some time now, I'm absolutely in love with GNOME Do.
Basically, it's Deskbar-Applet but with much more eye-candy - and I love that :)

A Rhythmbox plugin is available but I use Banshee on this computer so I had no other choice than to write an plugin for it :P

The thing is heavily based on the Rhythmbox Addin and has the same "browse" feature.
The obligatory screenshot:



The code is available here. Maybe I will set up a bzr branch for it.

The - normally cross-platform - compiled DLL is available. Just drop this file in your ~/.do/addins directory and restart gnome-do to use it.
Comments/Bug reports are welcome.

PS: Since I'm also a QuodLibet fan, a QuodLibet plugin should follow.

Update 01/07/2008: As of today, Gnome-Do's trunk branch in Launchpad requires new versions of plugins. I just built a new version of the DLL compatible with the trunk. You will find the updated source code and the compiled DLL in my bzr branch on Launchpad (click on "Browse Code" on the left to access the files).
Important: You must put the new Banshee.dll file in your ~/.do/plugins directory - not in ~/.do/addins.


Update 02/16/2008: The Banshee plugin is now merged in the official do-plugins branch. You can get the code from here and build it yourself. Or wait a little for it to be packaged and available in a distribution near your :)

17 commentaires:

David a dit…

YEAH YEAH YEAH YEAH YEAH.... This kicks a lot of ass.

GNOME Do > Deskbar + Eye candy

David a dit…

Again, AWESOME. Please send a heads-up to the mailing list: http://groups.google.com/group/gnome-do

A lot of people have been waiting for a Banshee plugin. I'm glad I no longer have to write it :)

Also, what about Banshee's new DBus music store backend - can you get lists of songs and albums over DBus? It's good to load the database file directly so people can search and play music without having to open Banshee first, but when browsing genres, album contents, etc., it will be faster and less repetitive to query Banshee over DBus.

Athrun a dit…

I know that "GNOME Do > Deskbar + Eye candy", I actually read your paper:)
And if you really manage to implement all of that, it's gonna rock hard!

About Banshee's DBus Media store, I think it's not ready yet. I have 0.13.1 here and the DBus API don't allow querying the media store.

Sandi a dit…

How would you proceed with the quodlibet plugin ? Is there a way to read a cpickled data (song library) with C# ?

Athrun a dit…

Hi Sandi!
I wrote a patch for QuodLibet to allow querying the song database from DBus.
It will only work when QuodLibet is running, though.

For "offline" use, I'm considering invoking python directly from the code, unpickle the database, and write it to a parser-friendly file.

gom a dit…

Hi Athrun, NICE job on this, its awesome!

Would you mind if I used your banshee plugin as a base for an exaile gnome-do plugin I'm trying to make?

Exaile also uses sqlite and dbus, and after looking through your code I think I can modify it to work with exaile with a bit of creative hacking...

Athrun a dit…

Please go ahead.
My code is heavily based on the Rhythmbox plugin in the first place!
Have fun and don't hesitate to ask if there's something you don't understand in the code.

gameboy a dit…

ça fait plaisir de voir un projet qui reprend gnome launch box : )

Matt a dit…

thankyouthankyouthankyou

Brandon Stafford a dit…

Indistinguishable from magic-- thanks a lot from Boston, USA.

Walther a dit…

The link to your updated dlls doesn't work. I think this is a better one: http://codebrowse.launchpad.net/~thelama/+junk/do-plugins/files

Mariusz a dit…
Ce commentaire a été supprimé par l'auteur.
Mariusz a dit…

Well, the plugin just doesn't work for me. Gnome-do does start, but I can't use your banshee plugin.
I got this when running gnome-do:
"** (Do:4515): WARNING **: The class Do.Universe.AbstractAction could not be loaded, used in Do.Addins, Version=1.0.2957.29048, Culture=neutral
2008-02-16 01:06:25 [Error]: Encountered and error while trying to load plugin Banshee.dll: Could not load type 'Do.Universe.AbstractAction' from assembly 'Do.Addins, Version=1.0.2957.29048, Culture=neutral'."

Athrun a dit…

Hi mariusz,
The version of your copy of Do.Addins.dll (that comes with Do) is too old.
Please, reinstall GNOME Do from trunk first and test again.

LifaR a dit…

I tried to use previous version of your plugin, but didn't try to use newer version of gnome-do ;) My fault :) Now it works just great, thanks.
Though i still get some errors while loading gnome-do:
"2008-02-16 13:43:15 [Info]: Successfully loaded "Play" action.
at Mono.Data.Sqlite.SqliteDataReader.VerifyType (Int32 i, DbType typ) [0x00000]
at Mono.Data.Sqlite.SqliteDataReader.GetString (Int32 i) [0x00000]
at Do.Addins.Banshee.Banshee.LoadAllSongs () [0x00000]
Got Exception: Cannot cast from source type to destination type."

but I don't know does it affect anything.

Pablo a dit…

Hello. Don't you have any plans of modyfing this plugin so it can work with the newer versions of banshee??

Barnabás a dit…

Hello, how can i get the dll??? I couldn't find the file on the link of launchpad you posted.

Thanks,
Luís Fernando
luis.nando@gmail.com