From 7134819c264f8aae390ed86f28b4809d12cc8146 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 22 Aug 2025 20:45:05 +0530 Subject: [PATCH] Fix child_is_remote() not working when abspath to ssh is used --- kitty/window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/window.py b/kitty/window.py index abc348ea6..02cc5cd4e 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -1827,7 +1827,7 @@ class Window: def child_is_remote(self) -> bool: for p in self.child.foreground_processes: q = list(p['cmdline'] or ()) - if q and q[0].lower() == 'ssh': + if q and os.path.basename(q[0]).lower() == 'ssh': return True return False