[Sugar-devel] [Feature] Start an activity from another, activity
Gonzalo Odiard
godiard at sugarlabs.org
Thu Apr 23 09:54:43 EDT 2015
Hi Tony,
This feature try implement that in a smarter way.
Here a example:
* You download something in Browse.
* Browse can't manage every possible file. We include a pdf viewer,
but by example, we can't show a epub file in the browser or a piece
TurtleArt code.
* Right now Browse save the downloaded file in the Journal
and display a button "Show in Journal", because the Journal knows
what activity can open every file type.
* The idea is move that logic (the relation between file types and
activities)
to the toolkit, then Browse can say "Open this...."
and start any activity needed to open the file, or show a message
"You don't have any activity to open this file"
There are more information in the feature page in the wiki [1]
Gonzalo
[1]
http://wiki.sugarlabs.org/go/Features/Start_activity_from_another_activity
On Thu, Apr 23, 2015 at 8:49 AM, Tony Anderson <tony_anderson at usa.net>
wrote:
> Hi, Gonzalo
>
> This capability has been included in Sugar from day one in the form of
> sugar-launch. Sugar launch can be executed by any activity using the Python
> subprocess module. I have added support for the options -o and -u. The
> first launches with a specified (Journal) object_id. The second launches
> with a specified uri. I haven't used the -u option, but -b works well.
>
> I sent an email earlier, but it may have been lost somewhere.
>
> Tony
>
> On 04/22/2015 08:31 PM, sugar-devel-request at lists.sugarlabs.org wrote:
>
>> Message: 1
>> Date: Wed, 22 Apr 2015 15:14:03 -0300
>> From: Gonzalo Odiard<godiard at sugarlabs.org>
>> To: "Sam P."<sam.parkinson3 at gmail.com>
>> Cc: Sugar-dev Devel<sugar-devel at lists.sugarlabs.org>, Manuel Qui?ones
>> <manuq at laptop.org>
>> Subject: Re: [Sugar-devel] [Feature] Start an activity from another
>> activity
>> Message-ID:
>> <
>> CAJ+iPVTEyOStNzndrV3GuT4M5-TBeWZ-KTr1K+2-8jn__9ff9Q at mail.gmail.com>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> >
>>> >
>>> >* It would be nice to have it integrate with the New ASLO and prompt
>>> when
>>> >the user doesn't have an activity and must download one. The New ASLO
>>> has
>>> >data sorted by bundle ID and is collecting mime types for all
>>> activities,
>>> >meaning we have all the data required to make this work. The next
>>> question
>>> >is probably UX. Here is my mockup suggestion:http://framebox.org/TbEd
>>> >
>>>
>> I would prefer land a simple version first (more thinking we have a end
>> for
>> new features in May 18)
>>
>>
>>
>> >* Does the design deal with all the security stuff?
>>> >
>>>
>> Like what? This is just to start one activity from another with a object
>> from the Journal.
>>
>> Gonzalo
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:<
>> http://lists.sugarlabs.org/archive/sugar-devel/attachments/20150422/f8c5f560/attachment-0001.html
>> >
>>
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
--
Gonzalo Odiard
SugarLabs - Software for children learning
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20150423/2601e297/attachment.html>
More information about the Sugar-devel
mailing list