Re: Gnome2::PanelApplet [Re: Applets]

hi Grant;

On Sat, 2007-02-03 at 08:46 +1300, Grant McLean wrote:
a way to enhance debugging might be writing a dummy C applet and a perl
applet with the same factory name; attach the C applet to the panel,
kill it and when the panel asks you to reload it launch the perl applet
and then say yes to the reload dialog.  at that point, the perl applet
should print stuff to the terminal in which you launched it.  at least,
you would have debug messages.


for debugging purposes, you can start your applet process manually from
a shell prompt (presumably you could even run it in a debugger).  It
will appear to hang, until you add the corresponding applet to the
panel.  At that point the Bonobo framework will 'attach' to your
existing process which can happily print debugging messages to
STDOUT/STDERR and they'll appear in your terminal.

yep, this is another way of hijacking the bonobo activation system used
by the panel and the applets.

if someone feels brave enough, can check out the Gnome2::PanelApplet
from the sourceforge CVS server and install the example/test applet that
comes with it, and then report here what happens - or, even better,
propose a fix for it (unfortunately, I can't really devote time to do
such testing, at the moment).


Emmanuele Bassi,  E: ebassi gmail com

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