Windows: When registering calibre programs as possible handlers for various file types, dont se the AllowSilentDefaultTakeOver registry key

See https://www.mobileread.com/forums/showthread.php?t=313668
This commit is contained in:
Kovid Goyal 2018-12-24 14:00:41 +05:30
parent d10d7371ce
commit 0afaf3a800
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -85,7 +85,10 @@ def create_prog_id(ext, prog_id, ext_map, exe):
key.set('PerceivedType', 'Document')
key.set(sub_key='DefaultIcon', value=exe+',0')
key.set_default_value(r'shell\open\command', '"%s" "%%1"' % exe)
key.set('AllowSilentDefaultTakeOver')
# contrary to the msdn docs, this key prevents calibre programs
# from appearing in the initial open with list, see
# https://www.mobileread.com/forums/showthread.php?t=313668
# key.set('AllowSilentDefaultTakeOver')
with Key(r'Software\Classes\.%s\OpenWithProgIDs' % ext) as key:
key.set(prog_id)