Changes

311 bytes added ,  00:38, 7 September 2013
Line 243: Line 243:  
=== Launching ===
 
=== Launching ===
   −
Sugar Network ''Contexts'' can be launched as-is. The launching process is implicit and includes selecting most recent (and appropriate for software contexts) ''Implementation'', downloading bundles from the Sugar Network, execution. All downloaded implementations will be cached [with further garbage collecting] to speedup next launching.
+
Sugar Network ''Contexts'' can be launched as-is. The launching process is implicit and includes selecting the most recent (and appropriate for software contexts) ''Implementation'', downloading bundles from the Sugar Network, installing missed [[Sugar_Network/Recipe_Specification#Dependencies|software dependencies]], execution. All downloaded implementations will be cached [with further garbage collecting] to speedup further launching.
   −
Sugar activities (with {{Code|activity}} value in the ''Context.type'' property) will be directly executed after making sure that all [[Sugar_Network/Recipe_Specification#Dependencies|software dependencies]] are installed in the system. Non-software contexts will be opened in the proper application according to its ''Implementation.mime_type''.
+
Sugar activities (with {{Code|activity}} value in the ''Context.type'' property) will be directly executed. Non-software contexts will be opened in the proper application according to its ''Implementation.mime_type''.
   −
  '''GET''' /context/''GUID''?cmd='''launch'''[&args=''ARG''][&activity_id=''ACTIVITY_ID''][&object_id=''OBJECT_ID''][&uri=''URI''][&context=''CONTEXT'']
+
  '''GET''' /context/''GUID''?cmd='''launch'''[&args=''ARG''][&activity_id=''ACTIVITY_ID''][&object_id=''OBJECT_ID''][&uri=''URI''][&context=''CONTEXT''][&spawn]
    
Arguments that make sense only for Sugar activities:
 
Arguments that make sense only for Sugar activities:
Line 259: Line 259:     
* {{Code|CONTEXT}}, specify application ''Context'' to open the launching implementation by; if omitted, the system will try to find most appropriate option, among all existing software contexts, using ''Context.mime_types'' property.
 
* {{Code|CONTEXT}}, specify application ''Context'' to open the launching implementation by; if omitted, the system will try to find most appropriate option, among all existing software contexts, using ''Context.mime_types'' property.
 +
 +
Common arguments:
 +
 +
* {{Code|spawn}}, by default, the command will return streamed ''text/event-stream'' MIME type data to monitor the whole launching process until exiting the application; if the {{Code|spawn}} argument is specified, the command will exit immediately with [[#Notifications|asynchronous sending]] launching events.
 
<!--
 
<!--
 
=== Access to the Journal ===
 
=== Access to the Journal ===