[pygtk] applet .server file error / how to debug "panel add"?

Jorge Vargas jorge.vargas at gmail.com
Mon Nov 6 21:56:27 WST 2006


On 11/6/06, Sebastian Pölsterl <marduk at k-d-w.org> wrote:
>
> Jorge Vargas wrote:
> > Hi I promise this is my last email tonight.
> >
> > I'm just stuck on this it seems there is a problem when creating the
> > new instance from the "panel add", because if I open a shell and run
> > python wp_thingy_view.py and then add it to the panel everything works
> > ok (I even check bonobo-browser and the factory is there), but if
> > there are no instances running (the normal way to execute an applet)
> >
> > I'm getting this very informative error ....
> >
> > The panel encountered a problem while loading "OAFIID:wp_thingy".
> >
> > [..]
> Hi!
>
> have a look at http://www.davyd.id.au/articles/debugging-gnome-applets.shtml
> As you write a Python applet you have to use gdb python instead of gdb
> ./my_applet
>
no interesting read but ...

my problem is what's described in the last entry "If the binary
appears to run fine from the command line, and you can instantiate an
applet, but doesn't run fine when automatically loaded by Bonobo, try
moving the binary out of the way and putting a shell script in it's
place."

of course not the binary I'll try oaf-slay and I'll try the shell
script but I drought it, I have restarted gnome many times, and it's
still happening

> In addition, I had a similiar problem. The problem was that I exited the
> program if some umknown commandline arguments are supplied.
I'll take a look at my exit's

> Actually,
> bonobo calls an applet like this:
> gnome-applets/notification-area-applet
> --oaf-activate-iid=OAFIID:GNOME_NotificationAreaApplet_Factory
> --oaf-ior-fd=35
I see so how will I get the fd? maybe I can call my applet like that
and see what is actually happening.

>
side note, what I currently do to debug is put the applet in a window,
the tip explained here
http://www.pygtk.org/articles/applets_arturogf/x106.html

is there something wrong with that approach?

> --
> Greetings,
> Sebastian Pölsterl
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>


More information about the pygtk mailing list