diff options
Diffstat (limited to 'downloadmanager.py')
-rw-r--r-- | downloadmanager.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/downloadmanager.py b/downloadmanager.py index 0451c77..37bdf34 100644 --- a/downloadmanager.py +++ b/downloadmanager.py @@ -147,6 +147,11 @@ class Download: self._mime_type, 'file://' + self._target_file.path.encode('utf8'), on_disk = True) + # Also add the 'text/uri-list' target for the same file path. + cb_service.add_object_format(self._cb_object_id, + 'text/uri-list', + 'file://' + self._target_file.path.encode('utf8'), + on_disk = True) components.registrar.registerFactory('{23c51569-e9a1-4a92-adeb-3723db82ef7c}"', 'Sugar Download', |