Open with macOS: Fix error when trying to select executable instead of bundle

This commit is contained in:
Kovid Goyal 2020-04-21 20:43:24 +05:30
parent 2f2b246d71
commit 0c226161f2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -155,7 +155,7 @@ elif isosx:
return sort_key(entry.get('name') or '')
def finalize_entry(entry):
entry['extensions'] = tuple(entry['extensions'])
entry['extensions'] = tuple(entry.get('extensions', ()))
data = get_icon(entry.pop('icon_file', None), as_data=True, pixmap_to_data=pixmap_to_data)
if data:
entry['icon_data'] = data