diff options
Diffstat (limited to 'services/clipboard')
-rw-r--r-- | services/clipboard/typeregistry.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/clipboard/typeregistry.py b/services/clipboard/typeregistry.py index 97ac37b..93cc7e6 100644 --- a/services/clipboard/typeregistry.py +++ b/services/clipboard/typeregistry.py @@ -597,7 +597,7 @@ class UriListFileType(FileType): uris = self._formats['text/uri-list'].get_data().split('\n') if len(uris) == 1: uri = urlparse.urlparse(uris[0]) - ext = posixpath.splitext(uri.path)[1] + ext = posixpath.splitext(uri[2])[1] logging.debug(ext) # FIXME: Bad hack, the type registry should treat text/uri-list as a special case. if ext in ['.jpg', '.jpeg', '.gif', '.png', '.svg']: |