macOS: Add archive file type to info plist

List kitty in the Open With menu for archive files.
E.g. compressed files or disk image files
This commit is contained in:
pagedown 2022-02-05 23:19:33 +08:00
parent 9742e2ec48
commit 9989edbe42
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB

View File

@ -1006,21 +1006,19 @@ def macos_info_plist() -> bytes:
{ {
'CFBundleTypeName': 'Text files', 'CFBundleTypeName': 'Text files',
'LSItemContentTypes': ['public.text'], 'LSItemContentTypes': ['public.text'],
'LSTypeIsPackage': False,
'CFBundleTypeRole': 'Editor', 'CFBundleTypeRole': 'Editor',
'LSHandlerRank': 'Alternate', 'LSHandlerRank': 'Alternate',
}, },
{ {
'CFBundleTypeName': 'Image files', 'CFBundleTypeName': 'Image files',
'LSItemContentTypes': ['public.image'], 'LSItemContentTypes': ['public.image'],
'LSTypeIsPackage': False,
'CFBundleTypeRole': 'Viewer', 'CFBundleTypeRole': 'Viewer',
'LSHandlerRank': 'Alternate', 'LSHandlerRank': 'Alternate',
}, },
# Allows dragging arbitrary files to kitty Dock icon, and list kitty in the Open With context menu. # Allows dragging arbitrary files to kitty Dock icon, and list kitty in the Open With context menu.
{ {
'CFBundleTypeName': 'All files', 'CFBundleTypeName': 'All files',
'LSItemContentTypes': ['public.content', 'public.data'], 'LSItemContentTypes': ['public.archive', 'public.content', 'public.data'],
'CFBundleTypeRole': 'Editor', 'CFBundleTypeRole': 'Editor',
'LSHandlerRank': 'Alternate', 'LSHandlerRank': 'Alternate',
}, },