<div dir="ltr">Considering that James, Sam and I have reviewed and tested these changes, the consensus is to include them to fix the API. Therefore, Gonzalo has green light for merge.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 3, 2015 at 5:41 AM, Tony Anderson <span dir="ltr"><<a href="mailto:tony_anderson@usa.net" target="_blank">tony_anderson@usa.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Thanks James and Sam for your replies.<br>
<br>
The references to Rainbow Security model are a bit confusing. The
Rainbow model was dropped by the second G1G1 as I recollect. As far
as I can tell, Browse launches child processes (pdfviewer). These
typically are represented in the frame by a grey circle.<br>
<br>
I apologize on the argparse issue, I am still with 13.2. I was
confused by the documentation:
<a href="http://wiki.sugarlabs.org/go/Features/Start_activity_from_another_activity" target="_blank">http://wiki.sugarlabs.org/go/Features/Start_activity_from_another_activity</a><br>
<br>
"An activity can start other activity by:
<ul>
<li> knowing the activity ID - starts that specific activity"</li>
</ul>
<p>I assume that is a typo and bundle_id is meant.<br>
</p>
By having sugar-launch pass the -u (uri) and -o (object_id) options,
it is possible now (and possibly since 0.82) to launch an activity
by activity bundle_id either with a Journal object or a file from
the Documents directory (visible in Journal) or a USB key (also
visible in Journal). I have been using the -o and -u options in
sugar-launch for at least five years. This was discussed when this
feature was first proposed. <br>
<br>
In effect, the api added to 106 is simply an alternate way to
perform existing functions.<span class="HOEnZb"><font color="#888888"><br>
<br>
Tony</font></span><span class=""><br>
<br>
<div>On 07/03/2015 09:29 AM, Sam P. wrote:<br>
</div>
<blockquote type="cite">
<p dir="ltr">Hi Tony,</p>
<p dir="ltr">I think you have misunderstood the capabilities of
the api.</p>
<p dir="ltr">The api does not support launching with uris (which
is something to look into for 108) or "activity ids".</p>
<p dir="ltr">The api supports bundle ids (open a new terminal
activity) and object ids (open this memorize set). This allows
for many of the use cases you described although being very
simple.</p>
<p dir="ltr">Directly using sugar-launch from activity processes
is suboptimal, as activities should not launch child processes
(Rainbow security model). This was discussed when the feature
was being implemented.</p>
<p dir="ltr">I do not see why a feature that has some use cases
and does not destabilise the rest of the system should be
dropped so late in the cycle.</p>
<p dir="ltr">Thanks,<br>
Sam</p>
</blockquote>
<br>
</span></div>
<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" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><br></div>