Fix incorrect specification of DefaultIcon in calibre generated ProgIDs

This commit is contained in:
Kovid Goyal 2015-03-05 15:02:31 +05:30
parent b61507c405
commit 986adc521b

View File

@ -71,7 +71,7 @@ def create_prog_id(ext, prog_id, ext_map, exe):
key.set(value=type_name)
key.set('FriendlyTypeName', type_name)
key.set('PerceivedType', 'Document')
key.set('DefaultIcon', exe+',0')
key.set(sub_key='DefaultIcon', value=exe+',0')
key.set_default_value(r'shell\open\command', '"%s" "%%1"' % exe)
key.set('AllowSilentDefaultTakeOver')