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',
'LSItemContentTypes': ['public.text'],
'LSTypeIsPackage': False,
'CFBundleTypeRole': 'Editor',
'LSHandlerRank': 'Alternate',
},
{
'CFBundleTypeName': 'Image files',
'LSItemContentTypes': ['public.image'],
'LSTypeIsPackage': False,
'CFBundleTypeRole': 'Viewer',
'LSHandlerRank': 'Alternate',
},
# Allows dragging arbitrary files to kitty Dock icon, and list kitty in the Open With context menu.
{
'CFBundleTypeName': 'All files',
'LSItemContentTypes': ['public.content', 'public.data'],
'LSItemContentTypes': ['public.archive', 'public.content', 'public.data'],
'CFBundleTypeRole': 'Editor',
'LSHandlerRank': 'Alternate',
},