Ticket #955 (closed defect: fixed)
mimetype database only updated when installing activities
|Reported by:||erikos||Owned by:||tomeu|
|Priority:||Unspecified by Maintainer||Milestone:||0.86|
The code to read in the activity/imetypes.xml lives in sugar/bundle/ActivityBundle.install This is only executed when installing an activity.
When one unzip a .xo into ~/Activities (when running Sugar) the mimetype is not added to the database. There is some code in jarabe/model/bundleregistry.py to monitor those folders for changes. We could call the mimetype adding there.
Another case is, when sugar is not running (emulator for example) and one places an activity in the ~/Activity folder. This should ideally be handled as well.