From 9be57de4a9552be34ef28b84b86108dad57b2180 Mon Sep 17 00:00:00 2001 From: pagedown Date: Thu, 27 Jan 2022 18:16:35 +0800 Subject: [PATCH] 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. --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 08afddff7..26dac7092 100755 --- a/setup.py +++ b/setup.py @@ -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', }, ]