Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services/shell/clipboardservice.py
diff options
context:
space:
mode:
Diffstat (limited to 'services/shell/clipboardservice.py')
-rw-r--r--services/shell/clipboardservice.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/services/shell/clipboardservice.py b/services/shell/clipboardservice.py
index 6671fbf..f0b2baa 100644
--- a/services/shell/clipboardservice.py
+++ b/services/shell/clipboardservice.py
@@ -75,7 +75,9 @@ class ClipboardService(dbus.service.Object):
logging.debug('ClipboardService.add_object_format')
cb_object = self._objects[str(object_path)]
- if on_disk and cb_object.get_percent() == 100:
+ if format_type == 'XdndDirectSave0':
+ cb_object.add_format(Format(format_type, data, on_disk))
+ elif on_disk and cb_object.get_percent() == 100:
new_uri = self._copy_file(data)
cb_object.add_format(Format(format_type, new_uri, on_disk))
logging.debug('Added format of type ' + format_type + ' with path at ' + new_uri)
@@ -114,7 +116,7 @@ class ClipboardService(dbus.service.Object):
if percent == 100:
formats = cb_object.get_formats()
for format_name, format in formats.iteritems():
- if format.is_on_disk():
+ if format.is_on_disk() and format_name != 'XdndDirectSave0':
new_uri = self._copy_file(format.get_data())
format.set_data(new_uri)