[Trac #883] Running activities from the command line

Zarro Boogs per Child bugtracker at laptop.org
Thu Feb 8 19:04:54 EST 2007


#883: Running activities from the command line
--------------------+-------------------------------------------------------
 Reporter:  marco   |       Owner:  dcbw      
     Type:  defect  |      Status:  new       
 Priority:  normal  |   Milestone:  BTest-3   
Component:  sugar   |    Keywords:  sugar-love
--------------------+-------------------------------------------------------
 One of the problems with debugging activities is that it's really
 complicated to run them from the command line. It would good to make the
 sugar-activity script smarter, so that I could run "sugar-activity TamTam"
 and get the output in the terminal.

 This should be pretty easy to implement, the script should:

 1 Initialiaze the bundle registry
 2 Search an activity with arg1 as name there.
 2 Check if the service for that activity is already owned. In that case
 just create a new instance of the activity using the service and exit
 after having printed a message.
 3 If the service does not exist create it, by doing something similar to
 what sugar-activity-factory does (might have to refactor to share code).
 4 Create an instance of the activity.

-- 
Ticket URL: <http://dev.laptop.org/ticket/883>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list