mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-16 21:45:03 +02:00
Fix child_is_remote() not working when abspath to ssh is used
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user