diff --git a/src/sugar3/activity/activity.py b/src/sugar3/activity/activity.py index c896caff..3325f476 100644 --- a/src/sugar3/activity/activity.py +++ b/src/sugar3/activity/activity.py @@ -327,6 +327,13 @@ class Activity(Window, Gtk.Container): if 'share-scope' in self._jobject.metadata: share_scope = self._jobject.metadata['share-scope'] + if 'launch-times' in self._jobject.metadata: + self._jobject.metadata['launch-times'] += ', %d' % \ + int(time.time()) + else: + self._jobject.metadata['launch-times'] = \ + str(int(time.time())) + self.shared_activity = None self._join_id = None @@ -379,6 +386,7 @@ class Activity(Window, Gtk.Container): jobject.metadata['preview'] = '' jobject.metadata['share-scope'] = SCOPE_PRIVATE jobject.metadata['icon-color'] = icon_color + jobject.metadata['launch-times'] = str(int(time.time())) jobject.file_path = '' # FIXME: We should be able to get an ID synchronously from the DS,