[sugar] Activity Launching Change Proposal

Bert Freudenberg bert at freudenbergs.de
Thu Jun 28 03:12:07 EDT 2007


On Jun 22, 2007, at 18:43 , Michael Stone wrote:

>   The low-level problem is that, after a Rainbow-child-process  
> enters a
>   container to start the desired activity, the Rainbow-child- 
> process must
>   actually start the activity's 'ActivityFactory', then send it a  
> 'create'
>   message *over the session bus*
>
> Solution:
>
>   The procedure described in the preceding paragraph for actually  
> starting
>   activities inside an active container is overly-complicated at  
> best and is
>   highly error-prone at worst. A much simpler, more robust  
> procedure would be
>   leave out the DBus call to the factory's 'create' method and  
> would merely
>   rely on the execution of the factory process itself to perform  
> whatever
>   activity is appropriate to make a new activity instance inside  
> the container.
>
> Feedback on this proposal in general and on the appropriate  
> information to pass
> to the proposed factory executable would be most appreciated.

How would you launch the second instance if the factory does not  
provide a dbus service? That's why it's called a factory, after all.

Also, please keep in mind that whatever protocol changes you  
introduce cannot be fixed up solely by adapting the default activity  
code in Sugar. There are native activities implementing the raw DBus  
protocol, too. One example is Etoys (not sure if there are more at  
this time). So please notify activity developers in advance to give  
us a little bit of time to adapt to protocol changes.

- Bert -




More information about the Sugar mailing list