sugarlabs / browse-activity

Sugar activity to browse the internet; WebKit on GTK on Sugar Toolkit
GNU General Public License v2.0
8 stars 44 forks source link

Delete activity bundle after download and install #81

Open quozl opened 6 years ago

quozl commented 6 years ago

Reproducer:

Observed result:

Expected result:

Hrishi1999 commented 5 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?

quozl commented 5 years ago

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?

Hrishi1999 commented 5 years ago

Does this (https://github.com/sugarlabs/browse-activity/blob/master/downloadmanager.py#L237) trigger it?

quozl commented 5 years ago

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.

quozl commented 5 years ago

@nswarup14 said;