[sugar] Activity bundle tutorial
Marco Pesenti Gritti
mpg
Thu Feb 8 19:44:16 EST 2007
On Thu, 2007-02-08 at 21:39 -0300, Gonzalo Delgado wrote:
> 2007/2/8, Marco Pesenti Gritti <mpg at redhat.com>:
> > On Thu, 2007-02-08 at 21:15 -0300, Gonzalo Delgado wrote:
> > > 2007/2/7, Marco Pesenti Gritti <mpg at redhat.com>:
> > > > Hello,
> > > >
> > > > I put on the wiki a simple tutorial about writing activity bundles,
> > > > based on Owen's HelloWorld activity.
> > > >
> > > > http://wiki.laptop.org/go/Sugar_Activity_Tutorial
> > > >
> > > > Feedback and contributions are welcome!
> > > >
> > > > Marco
> > > >
> > > > _______________________________________________
> > > > Sugar mailing list
> > > > Sugar at laptop.org
> > > > http://mailman.laptop.org/mailman/listinfo/sugar
> > > >
> > >
> > > I couldn't find this on the tutorial nor anywhere in the wiki: How do
> > > I make my activity's status icon (the one that should show up at the
> > > upper side of the frame when the activity launches, you know, the one
> > > from which you can close the activity) appear? I searched through the
> > > code of other activities but couldn't find anything explicit about it
> > > :(
> > >
> >
> > That should just work actually, unless your activity is failing to start
> > completely (sometimes happen when you traceback in __init__). In that
> > case you should get errors in the shell log though.
> >
> > Marco
> >
> >
>
> The only suspicios error I see is this one:
>
> DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name
> org.laptop.Activity10485793 was not provided by any .service files
>
Yep that's why that icon is not working. I think this is usually caused
by:
1 Traceback in __init__
2 self.show() in the Activity. (there is no need to show the activity it
will be showed by sugar)
Marco
More information about the Sugar-devel
mailing list