Adding extensions

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding extensions

espresso
I'm having trouble adding extensions. I have binaries in both
~/.config/banshee-1/extensions and /usr/lib/banshee-1/Extensions but the
extensions manager only lists the default extensions. What do I need to
do to add these?


Jon
_______________________________________________
Banshee-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/banshee-list
Reply | Threaded
Open this post in threaded view
|

Re: Adding extensions

Bertrand Lorentz
Administrator
On Tue, 2008-05-27 at 10:08 -0700, Jon Cosby wrote:
> I'm having trouble adding extensions. I have binaries in both
> ~/.config/banshee-1/extensions and /usr/lib/banshee-1/Extensions but the
> extensions manager only lists the default extensions. What do I need to
> do to add these?

Users extensions now go into ~/.config/banshee-1/addins
For /usr/lib/banshee-1/Extensions, I'm not sure, I never tested it.

The extension has to be coded and built for the new banshee (0.99.X),
simply dropping a dll of an extension built for banshee 0.13.x will not
work.

To see what's going on you can run "banshee-1 --debug" in a terminal.

Cheers,

--
Bertrand Lorentz <[hidden email]>
> http://flickr.com/photos/bl8/ <

_______________________________________________
Banshee-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/banshee-list

signature.asc (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Adding extensions

Brandon Perry-2
>From what I understand, 99.2 is pretty much a complete rewrite (Just to clarify what Bertrand said). Code that worked there probably won't work now.

2008/5/27 Bertrand Lorentz <[hidden email]>:
On Tue, 2008-05-27 at 10:08 -0700, Jon Cosby wrote:
> I'm having trouble adding extensions. I have binaries in both
> ~/.config/banshee-1/extensions and /usr/lib/banshee-1/Extensions but the
> extensions manager only lists the default extensions. What do I need to
> do to add these?

Users extensions now go into ~/.config/banshee-1/addins
For /usr/lib/banshee-1/Extensions, I'm not sure, I never tested it.

The extension has to be coded and built for the new banshee (0.99.X),
simply dropping a dll of an extension built for banshee 0.13.x will not
work.

To see what's going on you can run "banshee-1 --debug" in a terminal.

Cheers,

--
Bertrand Lorentz <[hidden email]>
> http://flickr.com/photos/bl8/ <

_______________________________________________
Banshee-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/banshee-list



_______________________________________________
Banshee-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/banshee-list
Reply | Threaded
Open this post in threaded view
|

Re: Adding extensions

espresso
In reply to this post by Bertrand Lorentz
Bertrand Lorentz wrote:

> On Tue, 2008-05-27 at 10:08 -0700, Jon Cosby wrote:
>> I'm having trouble adding extensions. I have binaries in both
>> ~/.config/banshee-1/extensions and /usr/lib/banshee-1/Extensions but the
>> extensions manager only lists the default extensions. What do I need to
>> do to add these?
>
> Users extensions now go into ~/.config/banshee-1/addins
> For /usr/lib/banshee-1/Extensions, I'm not sure, I never tested it.
>
> The extension has to be coded and built for the new banshee (0.99.X),
> simply dropping a dll of an extension built for banshee 0.13.x will not
> work.
>
> To see what's going on you can run "banshee-1 --debug" in a terminal.
>
> Cheers,
>
>

I compiled James' CoverArt with Banshee, but I had run patch twice and
hadn't corrected the configuration file. Now, though, Banshee is loading
the extensions then crashing when CoverArt initializes. If I set it to
default disabled on startup I can enable it from the manager, although
it doesn't appear in the tools menu. It does fetch the cover. I imagine
this is a bug in CoverArt. I'll try adding some other extensions from
source later.

Debug output:

[Debug 09:01:44.395] Extension service started (CoverArtService, 0.007515s)
[Info  09:01:44.398] All services are started 5.09767s
Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. ---> System.ArgumentException: resource
must be a valid resource name of 'assembly'.
   at Gtk.UIManager.AddUiFromResource (System.String resource) [0x00000]
   at Banshee.CoverArt.CoverArtService.Initialize () [0x000a5] in
/home/jon/Projects/gtk/banshee-1/src/Extensions/Banshee.CoverArt/CoverArtService.cs:116
   at Banshee.CoverArt.CoverArtService.ServiceStartup () [0x0001c] in
/home/jon/Projects/gtk/banshee-1/src/Extensions/Banshee.CoverArt/CoverArtService.cs:93
   at Banshee.CoverArt.CoverArtService.OnSourceAdded
(Banshee.Sources.SourceAdded
Args args) [0x00000] in
/home/jon/Projects/gtk/banshee-1/src/Extensions/Banshee.
CoverArt/CoverArtService.cs:73
   at (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_SourceAddedArgs
(Banshee.Sources.SourceAddedArgs)
   at Banshee.Sources.SourceManager.AddSource (Banshee.Sources.Source
source, Boolean isDefault) [0x0008c] in
/home/jon/Projects/gtk/banshee-1/src/Core/Banshee.S
ervices/Banshee.Sources/SourceManager.cs:153
   at Banshee.Sources.SourceManager.AddSource (Banshee.Sources.Source
source, Boolean isDefault) [0x000eb] in
/home/jon/Projects/gtk/banshee-1/src/Core/Banshee.S
ervices/Banshee.Sources/SourceManager.cs:165
   at Banshee.ServiceStack.Application.Run () [0x00023] in
/home/jon/Projects/gtk/banshee-1/src/Core/Banshee.Services/Banshee.ServiceStack/Application.cs:83
   at Banshee.Gui.GtkBaseClient.Initialize (Boolean
registerCommonServices) [0x000b7] in
/home/jon/Projects/gtk/banshee-1/src/Core/Banshee.ThickClient/Banshee.Gu
i/GtkBaseClient.cs:106
   at Banshee.Gui.GtkBaseClient..ctor (Boolean initializeDefault,
System.String defaultIconName) [0x00013] in
/home/jon/Projects/gtk/banshee-1/src/Core/Banshee.T
hickClient/Banshee.Gui/GtkBaseClient.cs:68
   at Banshee.Gui.GtkBaseClient..ctor () [0x00000] in
/home/jon/Projects/gtk/banshee-1/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs:60
   at Nereid.Client..ctor () [0x00000]
   at (wrapper managed-to-native)
System.Reflection.MonoCMethod:InternalInvoke (o
bject,object[])
   at System.Reflection.MonoCMethod.Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)
[0x0003f] in /tmp/monobuild/build/BUILD/mono-1.2.6
/mcs/class/corlib/System.Reflection/MonoMethod.cs:400 --- End of inner
exception
  stack trace ---

   at System.Reflection.MonoCMethod.Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globa
lization.CultureInfo culture) [0x00064] in
/tmp/monobuild/build/BUILD/mono-1.2.6
/mcs/class/corlib/System.Reflection/MonoMethod.cs:410
   at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr,
System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000] in
/tmp/monobuild/build/BUILD/mono-1.2.6/mcs/class/corlib/S
ystem.Reflection/MonoMethod.cs:415
   at System.Reflection.ConstructorInfo.Invoke (System.Object[]
parameters) [0x0000e] in
/tmp/monobuild/build/BUILD/mono-1.2.6/mcs/class/corlib/System.Reflection
/ConstructorInfo.cs:77
   at System.Activator.CreateInstance (System.Type type, Boolean
nonPublic) [0x00083] in
/tmp/monobuild/build/BUILD/mono-1.2.6/mcs/class/corlib/System/Activator.
cs:311
   at System.Activator.CreateInstance (System.Type type) [0x00000] in
/tmp/monobuild/build/BUILD/mono-1.2.6/mcs/class/corlib/System/Activator.cs:212
   at Banshee.Gui.GtkBaseClient.Startup () [0x00000] in
/home/jon/Projects/gtk/banshee-1/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs:55
   at Hyena.Gui.CleanRoomStartup.Startup
(Hyena.Gui.StartupInvocationHandler startup) [0x00048] in
/home/jon/Projects/gtk/banshee-1/src/Libraries/Hyena.Gui/Hyena
.Gui/CleanRoomStartup.cs:54
Exception in Gtk# callback delegate
   Note: Applications can use GLib.ExceptionManager.UnhandledException
to handle the exception.
System.NullReferenceException: Object reference not set to an instance
of an object
   at Hyena.Data.Gui.ListView`1[Banshee.Collection.ArtistInfo].PaintRows
(Rectangle ) [0x00118] in
/home/jon/Projects/gtk/banshee-1/src/Libraries/Hyena.Gui/Hyena
 
.Data.Gui/ListView/ListView_Rendering.cs:186
   at
Hyena.Data.Gui.ListView`1[Banshee.Collection.ArtistInfo].OnExposeEvent
(Gdk.EventExpose ) [0x000d3] in
/home/jon/Projects/gtk/banshee-1/src/Libraries/Hyena
 
.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs:83
   at Gtk.Widget.exposeevent_cb (IntPtr widget, IntPtr evnt) [0x00000]
    at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e,
Boolean is_terminal)
    at Gtk.Widget.exposeevent_cb(IntPtr widget, IntPtr evnt)
    at Gtk.Widget.exposeevent_cb(IntPtr , IntPtr )
    at Gtk.Dialog.gtk_dialog_run(IntPtr )
    at Gtk.Dialog.gtk_dialog_run(IntPtr )
    at Gtk.Dialog.Run()
    at
Hyena.Gui.CleanRoomStartup.Startup(Hyena.Gui.StartupInvocationHandler
startup) in
/home/jon/Projects/gtk/banshee-1/src/Libraries/Hyena.Gui/Hyena.Gui/Clean
 
RoomStartup.cs:line 61
    at Banshee.Gui.GtkBaseClient.Entry() in
/home/jon/Projects/gtk/banshee-1/src/
 
Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs:line 50
    at Nereid.Client.Main() in
/home/jon/Projects/gtk/banshee-1/src/Clients/Nerei
    d/Nereid/Client.cs:line 47


_______________________________________________
Banshee-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/banshee-list