From 70110d54b045c0645b1b4bc6bfa682d65e3f60b1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 24 Sep 2023 08:34:08 +0530 Subject: [PATCH] Use resolved shell for --hold --- kitty/launch.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kitty/launch.py b/kitty/launch.py index f3927e105..c9778d07d 100644 --- a/kitty/launch.py +++ b/kitty/launch.py @@ -12,12 +12,11 @@ from .cli import parse_args from .cli_stub import LaunchCLIOptions from .clipboard import set_clipboard_string, set_primary_selection -from .constants import shell_path from .fast_data_types import add_timer, get_boss, get_options, get_os_window_title, patch_color_profiles from .options.utils import env as parse_env from .tabs import Tab, TabManager from .types import OverlayType, run_once -from .utils import cmdline_for_hold, get_editor, log_error, resolve_custom_file, which +from .utils import cmdline_for_hold, get_editor, log_error, resolve_custom_file, resolved_shell, which from .window import CwdRequest, CwdRequestType, Watchers, Window try: @@ -591,7 +590,7 @@ def _launch( set_primary_selection(stdin) else: if opts.hold: - cmd = kw['cmd'] or [shell_path] + cmd = kw['cmd'] or resolved_shell() if not os.path.isabs(cmd[0]): cmd[0] = which(cmd[0]) or cmd[0] kw['cmd'] = cmdline_for_hold(cmd)