|
|
|
@ -86,7 +86,18 @@ class ClipboardPanelWindow(FrameWindow):
|
|
|
|
|
logging.debug('adding type ' + selection.type + '.')
|
|
|
|
|
|
|
|
|
|
cb_service = clipboardservice.get_instance()
|
|
|
|
|
cb_service.add_object_format(key,
|
|
|
|
|
selection.type,
|
|
|
|
|
selection.data,
|
|
|
|
|
on_disk = False)
|
|
|
|
|
if selection.type == 'text/uri-list':
|
|
|
|
|
uris = selection.data.split('\n')
|
|
|
|
|
if len(uris) > 1:
|
|
|
|
|
raise NotImplementedError('Multiple uris in text/uri-list still not supported.')
|
|
|
|
|
|
|
|
|
|
cb_service.add_object_format(key,
|
|
|
|
|
selection.type,
|
|
|
|
|
uris[0],
|
|
|
|
|
on_disk=True)
|
|
|
|
|
else:
|
|
|
|
|
cb_service.add_object_format(key,
|
|
|
|
|
selection.type,
|
|
|
|
|
selection.data,
|
|
|
|
|
on_disk=False)
|
|
|
|
|
|
|
|
|
|