Ticket #2074 (closed defect: fixed)
Activity data directory should be deleted when an activity is deleted
| Reported by: | bernie | Owned by: | tch |
|---|---|---|---|
| Priority: | Normal | Milestone: | 0.90 |
| Component: | sugar | Version: | Unspecified |
| Severity: | Unspecified | Keywords: | sugar-love r+ dextrose |
| Cc: | garycmartin, wade | Distribution/OS: | Unspecified |
| Bug Status: | Assigned |
Description
Some ill-behaved activities generate large amounts of data in their data directories. For example, Browse can easily put 50MB of cache in there, and I've seen a laptop with Wine using up 200MB of disk space. As the user installs activities to try them out, this junk accumulates permanently in the filesystem, with no way to get rid of it. I've seen several laptops with an empty journal and no free space.
I propose that deleting an activity should also automatically delete its associated data directory.
There's a data loss concern for activities that don't use the journal, but the current behavior causes an even worse data loss scenario: it quickly makes the system so unusable that it needs to be reinstalled, thus loosing *all* data.

