From 12d8175d9ac3f6b5269d9ef9939a27ceecf36af4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 2 Jun 2022 10:33:56 +0530 Subject: [PATCH] Use inode/executable rather than application/executable --- kitty/guess_mime_type.py | 2 +- kitty/open_actions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/guess_mime_type.py b/kitty/guess_mime_type.py index 9265144df..137d6c154 100644 --- a/kitty/guess_mime_type.py +++ b/kitty/guess_mime_type.py @@ -74,5 +74,5 @@ def guess_type(path: str, allow_filesystem_access: bool = False) -> Optional[str if is_dir: mt = 'inode/directory' # type: ignore elif is_exe: - mt = 'application/executable' + mt = 'inode/executable' return mt diff --git a/kitty/open_actions.py b/kitty/open_actions.py index b45e54b86..2ea078366 100644 --- a/kitty/open_actions.py +++ b/kitty/open_actions.py @@ -236,7 +236,7 @@ action launch --type=os-window --cwd $FILE_PATH # Open executable file protocol file -mime application/executable,application/vnd.microsoft.portable-executable +mime inode/executable,application/vnd.microsoft.portable-executable action launch --hold --type=os-window $FILE_PATH # Open text files without fragments in the editor