diff --git a/sunflower/associations.py b/sunflower/associations.py index 56b3058ed..f196fff61 100644 --- a/sunflower/associations.py +++ b/sunflower/associations.py @@ -216,7 +216,7 @@ def open_file(self, selection, application_info=None, exec_command=None): if application.supports_uris(): selection = [ 'file://{0}'.format(pathname2url(encode_file_name(path))) - if not path.startswith('file://') else encode_file_name(path) + if '://' not in path else path for path in selection] application.launch_uris(selection) else: