Re: [Banshee-List] Wikipedia plugin



Interesting. It looks almost like you have the gecko-sharp libraries but not the underlying mozilla libraries (or your gecko-sharp library is pointing to the wrong location). Maybe I need to do something in my package to point to the proper location
of a mozilla library.  I don't know.
I looked on my system for the library, and I found that it's libgtkembedmoz.so:
trick mc /usr/lib $ find | grep gtkembedmoz.so
./mozilla/libgtkembedmoz.so
./gecko-sdk/lib/libgtkembedmoz.so
./mozilla-firefox/libgtkembedmoz.so

From the looks of it, your installation of gecko-sharp just doesn't have the library reference set up (properly). Maybe I need to include gecko-sharp.dll.config in the
plugin install.
trick mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ cat
gecko-sharp.dll.config
<configuration>
 <dllmap dll="libglib-2.0-0.dll" target="libglib-2.0.so.0"/>
 <dllmap dll="libgobject-2.0-0.dll" target="libgobject-2.0.so.0"/>
 <dllmap dll="libatk-1.0-0.dll" target="libatk-1.0.so.0"/>
 <dllmap dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.so.0"/>
 <dllmap dll="gtkembedmoz.dll" target="libgtkembedmoz.so"/>
</configuration>

If I were you, I'd drop a copy of your gecko-sharp.dll.config into
~/.gnome2/banshee/plugins and see what happens!  Might fix it for you :)

LMK if you make any progress!

Patrick

--
Patrick "Trick" van Staveren
Western Michigan University
AIM: goofyassmoose
Cell: 269.267.6008
http://www.trick.vanstaveren.us/


----- Message from ghaefbgtk gmail com ---------
   Date: Fri, 28 Apr 2006 20:42:11 +0200
   From: Nil Gradisnik <ghaefbgtk gmail com>
Reply-To: banshee-list gnome org
Subject: Re: [Banshee-List] Wikipedia plugin
     To: banshee-list gnome org


Looking good.

I'm getting an error when using this plugin on Banshee 0.10.9
The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not found.
I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no luck

Any suggestions ?

On 4/28/06, Trick van Staveren <trick vanstaveren us> wrote:
Howdy folks,

Everyone likes screenshots, so I'll start with the screenie:
http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png

I was reading the feature requests page, and I've noticed that as far back as I can remember, someone requested that banshee show artist information from wikipedia. At first I thought it was silly. Banshee is a music player, not a web browser! Well, needless to say, I've found myself such an addict to wikipedia for artist information,
that earlier today I thought it'd be a neat idea to implement.

Thus, the banshee-wikipedia-plugin was born.
It's simple right now (and I plan to keep it as simple as possible).
It's a Gecko widget dropped right below the library view. (Gecko == firefoz/mozilla
rendering engine).
It has a fixed size (for now).
It can be hidden/shown from the View menu (CTRL+I as well - is this an logical shortcut
mapping?).
It automatically queries wikipedia (english) for a page with the same title as the
artist that you're playing.  Changes with the track you're playing.
I'm very tired.
This is accurate probably about 80% of the time...you'll usually find a disambiguation
page wherever it's lacking.
I'm also telling it to use the mediawiki "simple" skin to make it load faster. In the future I'll figure out how to remove the nav bar on the left as it's pretty much
useless (if you want to browse, use a web browser).
Note the debug output in the console - it shows the actual URL you're looking at.

A few hours of hacking, and here you have it:
http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.tar.bz2

Feedback is welcome, appreciated, and encouraged! I'll drop it in Banshee SVN at some
point so you can track progress (abock - do you mind me adding this?)

MAJOR credit goes out to Fredrik Hedberg - more than half the code was based on the banshee-recommendation-plugin. I'll rewrite some of it in the future to fit my situation, but it provided a GREAT starting point for me as I barely had to think twice about how to create the frame, enable/disable it with a toggle menu item, etc.
Thanks Fredrik!

Enjoy!  Reply to the list or snag me on IRC (nick: trick)

Patrick

--
Patrick "Trick" van Staveren
Western Michigan University
http://www.trick.vanstaveren.us/




_______________________________________________
Banshee-list mailing list
Banshee-list gnome org
http://mail.gnome.org/mailman/listinfo/banshee-list

_______________________________________________
Banshee-list mailing list
Banshee-list gnome org
http://mail.gnome.org/mailman/listinfo/banshee-list



----- End message from ghaefbgtk gmail com -----






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]