From f5d305c0dfd8b9b5876ce924cdaf3000884c61f8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 14 Aug 2025 19:51:40 +0530 Subject: [PATCH] Dont serialize the launch cmd if it is the shell --- kitty/window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kitty/window.py b/kitty/window.py index e9724bdf1..7f8ba74f7 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -2003,7 +2003,8 @@ class Window: ans.append(f'--type={t}') if self.creation_spec and self.creation_spec.cmd: - ans.extend(self.creation_spec.cmd) + if self.creation_spec.cmd != resolved_shell(get_options()): + ans.extend(self.creation_spec.cmd) return ans