macOS: List kitty in the open with menu of an arbitrary file

Allow opening files without extension name following the rules in launch
actions configuration.
This commit is contained in:
pagedown 2022-01-27 18:16:35 +08:00
parent cc84ee9734
commit 9be57de4a9
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB

View File

@ -1021,12 +1021,12 @@ def macos_info_plist() -> bytes:
'CFBundleTypeRole': 'Viewer',
'LSHandlerRank': 'Alternate',
},
# Allows dragging arbitrary files to kitty, but does not include kitty in the open with list.
# 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'],
'CFBundleTypeRole': 'None',
'LSHandlerRank': 'None',
'CFBundleTypeRole': 'Editor',
'LSHandlerRank': 'Alternate',
},
]