Open quozl opened 6 years ago
Sorry if I am wrong, but shouldn't this be a journal feature?
At https://github.com/sugarlabs/sugar/blob/489974f4243eb3a18c0bea07812c436ed8aa7d5c/src/jarabe/view/customizebundle.py , generate_bundle
is what installs the activity right? So it should be implemented there?
Good question. I've other questions to suggest; How did Browse trigger it? Why does Browse not receive an answer? Why does Browse not delete the journal object afterwards?
Does this (https://github.com/sugarlabs/browse-activity/blob/master/downloadmanager.py#L237) trigger it?
Don't think so, that just writes the bundle to the journal. Wouldn't it be the callback to the prompt? See https://github.com/sugarlabs/browse-activity/blob/master/downloadmanager.py#L301 and try commenting that line out, you may find it won't install the bundle? You can find launch_bundle in the Sugar Toolkit. It does return something, but I'm not sure how to be sure when it is finished installing.
@nswarup14 said;
self.create_journal_object
method. As the download progresses, the journal entry is update by _update_progress
handler.__download_finished_cb
handler, updates the metadata for the journal entry created earlier, and writes it to the journal once again. This entry is the .xo activity bundle.launch_bundle
. I believe get_bundle
also installs the activity. The reasoning is that get_bundle
always returns None
for me. I checked the shell.log
after each download, the log file say that No bundle in activity.info
. Yet the activity is installed and I can see it in the favourite view.Show in Journal
is no longer required. Show in Journal
only works if the journal contains the entry, but if we are removing it after activity install, then the option has no meaning.
Reproducer:
Observed result:
Expected result: