From d42f2071c31206bbfb48b151fdf6096689a613fb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 7 Jan 2022 13:45:02 +0530 Subject: [PATCH] hold windows when running shell scripts via launch services --- kitty/boss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/boss.py b/kitty/boss.py index 1e9c7b012..15661cdab 100755 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -2219,9 +2219,9 @@ class Boss: mt = guess_type(path) or '' ext = os.path.splitext(path)[1].lower() if ext in ('.sh', '.command', '.tool'): - launch_cmd += [shell_path, path] + launch_cmd += ['--hold', shell_path, path] elif ext in ('.zsh', '.bash', '.fish'): - launch_cmd += [ext[1:], path] + launch_cmd += ['--hold', ext[1:], path] elif mt.startswith('text/'): launch_cmd += get_editor() + [path] elif mt.startswith('image/'):