<div dir="ltr">A while ago, I submitted a patch [1] to allow opening Browse (or others) from another activities links.<div><br></div><div>Maybe we could do something similar to that :)?</div><div><br></div><div>Refs:</div>
<div>1.<a href="http://marc.info/?l=olpc-sugar&m=129485435106175&w=2">http://marc.info/?l=olpc-sugar&m=129485435106175&w=2</a></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 21, 2014 at 2:00 PM, Manuel Quiñones <span dir="ltr"><<a href="mailto:manuq@laptop.org" target="_blank">manuq@laptop.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This topic appears once in a while in this mailing list, and as far as<br>
I know, each time it happens no one objects.<br>
So, time to bring it again.<br>
<br>
One of Sugar key principles is simplicity.<br>
Activities are meant to be simple, and users can make interesting<br>
things happen when they interoperate with the activities.<br>
They do so by using the Journal and the Clipboard.<br>
<br>
However, there are cases where you want to start an activity from<br>
inside another, thus skipping the step through the Journal.<br>
For example, a user wants to download and read a book.  The current steps are:<br>
- start GetBooks activity<br>
- search for the book<br>
- download the book (get book)<br>
- show book in Journal<br>
- start Read activity from the Journal object<br>
<br>
If activities could start other activities, the steps are simpler:<br>
- start GetBooks activity<br>
- search for the book<br>
- download the book (get book)<br>
- start Read activity<br>
<br>
This limitation (among others) has made Ceibal find a replacement for<br>
GetBooks and Read, their own BibliotecaSegura.<br>
<br>
So I've been investigating a bit, and found that is preety easy to add<br>
this feature.<br>
In fact it is already possible.<br>
I was able to change GetBooks to open Read after a book is downloaded.  See:<br>
<a href="https://github.com/manuq/get-books/compare/open-activity" target="_blank">https://github.com/manuq/get-books/compare/open-activity</a><br>
<br>
This is a bit hackish,<br>
- imports a model from the shell<br>
- the bundle_id of the activity is hardcoded<br>
<br>
I think the more elegant option is to extend sugar-launch to something like:<br>
<br>
    sugar-launch --object_id object_id<br>
<br>
And reuse the code in the Journal that starts or resumes activities (misc.py).<br>
<br>
Thoughts?<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
.. manuq ..<br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</font></span></blockquote></div><br></div>