Sugar Network/API: Difference between revisions

Line 233: Line 233:
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 ''Context.mime_types''.
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 ''Context.mime_types''.


  '''GET''' /context/''GUID''?cmd='''launch'''[&args=''ARG''][&activity_id=''ACTIVITY_ID''][&object_id=''OBJECT_ID''][&uri=''URI''][&color=''COLOR''][&no_spawn]
  '''GET''' /context/''GUID''?cmd='''launch'''[&args=''ARG''][&activity_id=''ACTIVITY_ID''][&object_id=''OBJECT_ID''][&uri=''URI''][&color=''COLOR'']


* {{Code|no_spawn}}, if specified, HTTP connection will not be closed until exiting launched process.
Arguments make sense only for Sugar activities:
 
Arguments that make sense only for Sugar activities:


* {{Code|ARG}}, command line argument to pass to launched activities, repeat {{Code|ARG}} for each argument;
* {{Code|ARG}}, command line argument to pass to launched activities, repeat {{Code|ARG}} for each argument;