Linux: Fix an error when trying to use a program by path with the Open with functionality.

This commit is contained in:
Kovid Goyal 2017-06-30 11:19:34 +05:30
parent ee2b2e8d20
commit 768bdc2d8e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -218,7 +218,10 @@ else:
pmap = ic.pixmap(48, 48)
if not pmap.isNull():
entry['icon_data'] = pixmap_to_data(pmap)
entry['MimeType'] = tuple(entry['MimeType'])
try:
entry['MimeType'] = tuple(entry['MimeType'])
except KeyError:
entry['MimeType'] = ()
return entry
# }}}