Commit Graph
7 Commits
Author SHA1 Message Date
Michael Stone a65c8d2148 Get activities launching with rainbow-0.8.x.
Future extensions:

a) we are now able to reliably detect when an activity's main process has
exited. We should take advantage of this to give better feedback on activity
crashes; e.g. by turning the frame's activity-icon into an error icon and by
inserting the activity's log into the datastore so that it appears in the
Journal.

b) in the future, I'd like rainbow to provide more narrow interfaces for
manipulating jails; e.g. for garbage-collecting them, nuking their contents, or
for reusing them. Please consider this an invitation to show me which interfaces
would work best for Sugar.

P.S. - Thanks to Sascha Silbe for testing and for improvements to this patch.
2009-02-27 16:42:47 -05:00
Michael Stone 1bf6cdaa81 Correct a typo in datastore.py so that Pippy can resume with data. 2007-11-12 16:52:01 -05:00
Michael Stone 8bd8ec6216 Improve error-handling during activity log-file creation. 2007-11-09 13:11:19 -05:00
Michael Stone 0a9676171d Improve ActivityFactory utility functions and reduce code-path duplication.
* Remove a race in open_log_file()

  * Make open_log_file return a path as well as a file-object so that
    Rainbow-launched activities can log to the same path that sugar-launched
    ones do.

  * Change the call to Rainbow so that it writes to the log-file provided by
    open_log_file()

  * Define SUGAR_BUNDLE_ID env variable and change the location of the check
    for /etc/olpc-security so that Rainbow doesn't have to search for or parse
    the activity bundle.

  * Remove import statements marked as unnecessary by pylint.

  * Fix up some whitespace issues.
2007-11-05 17:40:05 -05:00
Michael Stone 9c5755d85a Direct Rainbow to capture activity stdio output. 2007-10-10 19:23:59 -04:00
Michael Stone 46357bdc66 Fixes #3723, "Fix Rainbow/Sugar Integration." 2007-09-21 17:26:58 -04:00
Michael Stone a7b0e02aea Fixes to broken Rainbow calls in Shell service. 2007-09-11 12:39:42 -04:00