[Sugar-devel] [Feature] Start an activity from another activity
James Cameron
quozl at laptop.org
Mon Apr 20 02:47:57 EDT 2015
Thanks.
What you describe sounds like activating a journal entry, which causes
the default activity to be started.
I think I'd like to hear from activity authors who would use the
feature.
For example, download completion in Browse; at the moment it offers
"show in journal", but could be "open".
Dependencies are still a concern though; how should Sugar react if
there is no activity capable of opening an object of an unusual mime
type?
On Mon, Apr 20, 2015 at 06:12:07AM +0000, Sam P. wrote:
> Hi James,
>
> I do not think that these dependencies should be encoded. I do not want to
> create a confusing nested activity list thingo.
>
> 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).
>
> 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.
>
> For activities that use it abstractly, I think they gain no benefit form
> installing something before usage or when the user needs it.
>
> Thanks,
> Sam
>
> On Mon, Apr 20, 2015 at 2:10 PM James Cameron <[1]quozl at laptop.org> wrote:
>
> I have no use case for the feature, sorry. The activities I'm mostly
> concerned with stand alone.
>
> But if an activity is written to use the feature, a dependency is
> created; my question is _will_ it be encoded, and what are the effects
> on other actions that change the list of activities?
>
> What you describe as non-essential is a type of dependency. Do you
> have a use case for that?
>
> On Mon, Apr 20, 2015 at 03:20:34AM +0000, Sam P. wrote:
> > Hi James,
> >
> > Having activity dependencies is an interesting idea. What use case would
> it be
> > useful in?
> >
> > I was thinking about different use cases, eg; open this file I just
> downloaded
> > in an activity that deals with that mine, I exported my turtle to python
> code
> > so open it in pippy, I need to add a picture to my write doc so make an
> empty
> > file and open it with paint
> >
> > In those use cases, I don't think that it would be 100% needed to declare
> a
> > dependency, as it is not essential to the app.
> >
> > Thanks,
> > Sam
> >
> > On Mon, Apr 20, 2015 at 1:04 PM James Cameron <[1][2]quozl at laptop.org>
> wrote:
> >
> > How does an activity declare a dependency on another activity?
> > (e.g. [2][3]activity.info file)
> >
> > Is the dependency versioned?
> > (e.g. depends = Browse >= 157)
> >
> > Is the dependency rigid or only a suggestion?
> > (e.g. suggests = Browse >= 157, vs depends = Browse > 149)
> >
> > How does a download and install of an activity bundle ensure the
> > dependency is satisfied?
> >
> > How does Software Update to a new version of an activity ensure the
> > new dependency is satisfied?
> >
> > How does List View erase of an activity ensure the recursive cascade
> > erasure of the activities that depend on the activity being erased?
> >
> > --
> > James Cameron
> > [3][4]http://quozl.linux.org.au/
> > _______________________________________________
> > Sugar-devel mailing list
> > [4][5]Sugar-devel at lists.sugarlabs.org
> > [5][6]http://lists.sugarlabs.org/listinfo/sugar-devel
> >
> > References:
> >
> > [1] mailto:[7]quozl at laptop.org
> > [2] [8]http://activity.info/
> > [3] [9]http://quozl.linux.org.au/
> > [4] mailto:[10]Sugar-devel at lists.sugarlabs.org
> > [5] [11]http://lists.sugarlabs.org/listinfo/sugar-devel
>
> --
> James Cameron
> [12]http://quozl.linux.org.au/
> _______________________________________________
> Sugar-devel mailing list
> [13]Sugar-devel at lists.sugarlabs.org
> [14]http://lists.sugarlabs.org/listinfo/sugar-devel
>
> References:
>
> [1] mailto:quozl at laptop.org
> [2] mailto:quozl at laptop.org
> [3] http://activity.info/
> [4] http://quozl.linux.org.au/
> [5] mailto:Sugar-devel at lists.sugarlabs.org
> [6] http://lists.sugarlabs.org/listinfo/sugar-devel
> [7] mailto:quozl at laptop.org
> [8] http://activity.info/
> [9] http://quozl.linux.org.au/
> [10] mailto:Sugar-devel at lists.sugarlabs.org
> [11] http://lists.sugarlabs.org/listinfo/sugar-devel
> [12] http://quozl.linux.org.au/
> [13] mailto:Sugar-devel at lists.sugarlabs.org
> [14] http://lists.sugarlabs.org/listinfo/sugar-devel
--
James Cameron
http://quozl.linux.org.au/
More information about the Sugar-devel
mailing list