<div dir="ltr"><div><div><div><div>Hi James,<br><br></div>I do not think that these dependencies should be encoded. I do not want to create a confusing nested activity list thingo.<br><br></div>When I think about it a little more, it kind of splits in to 2 use cases for me. Specific (launch this given bundle; eg. open pippy after python export in turtle) and abstract (launch a bundle to open/create something with a mime; eg. open downloads in browse).<br><br>For apps that are using it specifically they might benefit from having the activity installed before time, but I think a popup works and is simple. They also may never use the activity they request or the user may already have the activity installed.<br><br>For activities that use it abstractly, I think they gain no benefit form installing something before usage or when the user needs it.<br><br></div>Thanks,<br></div>Sam<br></div><br><div class="gmail_quote">On Mon, Apr 20, 2015 at 2:10 PM James Cameron <<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have no use case for the feature, sorry. The activities I'm mostly<br>
concerned with stand alone.<br>
<br>
But if an activity is written to use the feature, a dependency is<br>
created; my question is _will_ it be encoded, and what are the effects<br>
on other actions that change the list of activities?<br>
<br>
What you describe as non-essential is a type of dependency. Do you<br>
have a use case for that?<br>
<br>
On Mon, Apr 20, 2015 at 03:20:34AM +0000, Sam P. wrote:<br>
> Hi James,<br>
><br>
> Having activity dependencies is an interesting idea. What use case would it be<br>
> useful in?<br>
><br>
> I was thinking about different use cases, eg; open this file I just downloaded<br>
> in an activity that deals with that mine, I exported my turtle to python code<br>
> so open it in pippy, I need to add a picture to my write doc so make an empty<br>
> file and open it with paint<br>
><br>
> In those use cases, I don't think that it would be 100% needed to declare a<br>
> dependency, as it is not essential to the app.<br>
><br>
> Thanks,<br>
> Sam<br>
><br>
> On Mon, Apr 20, 2015 at 1:04 PM James Cameron <[1]<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>> wrote:<br>
><br>
> How does an activity declare a dependency on another activity?<br>
> (e.g. [2]<a href="http://activity.info" target="_blank">activity.info</a> file)<br>
><br>
> Is the dependency versioned?<br>
> (e.g. depends = Browse >= 157)<br>
><br>
> Is the dependency rigid or only a suggestion?<br>
> (e.g. suggests = Browse >= 157, vs depends = Browse > 149)<br>
><br>
> How does a download and install of an activity bundle ensure the<br>
> dependency is satisfied?<br>
><br>
> How does Software Update to a new version of an activity ensure the<br>
> new dependency is satisfied?<br>
><br>
> How does List View erase of an activity ensure the recursive cascade<br>
> erasure of the activities that depend on the activity being erased?<br>
><br>
> --<br>
> James Cameron<br>
> [3]<a href="http://quozl.linux.org.au/" target="_blank">http://quozl.linux.org.au/</a><br>
> _______________________________________________<br>
> Sugar-devel mailing list<br>
> [4]<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
> [5]<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
><br>
> References:<br>
><br>
> [1] mailto:<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
> [2] <a href="http://activity.info/" target="_blank">http://activity.info/</a><br>
> [3] <a href="http://quozl.linux.org.au/" target="_blank">http://quozl.linux.org.au/</a><br>
> [4] mailto:<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
> [5] <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br>
--<br>
James Cameron<br>
<a href="http://quozl.linux.org.au/" target="_blank">http://quozl.linux.org.au/</a><br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">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>
</blockquote></div>