From 1cafca1cc48efa6b404afc75153c52e84a422652 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 11 Aug 2025 21:55:18 +0530 Subject: [PATCH] Also serialize remote control state --- kitty/window.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kitty/window.py b/kitty/window.py index e8d4a441d..bb3651871 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -1955,6 +1955,12 @@ def as_launch_command(self) -> list[str]: cwd = path_from_osc7_url(self.screen.last_reported_cwd) or cwd if cwd: ans.append(f'--cwd={cwd}') + if self.allow_remote_control: + ans.append('--allow-remote-control') + if self.remote_control_passwords: + import shlex + for pw, rcp_items in self.remote_control_passwords.items(): + ans.append(f'--remote-control-password={shlex.join((pw,) + tuple(rcp_items))}') if self.creation_spec: if self.creation_spec.env: env = dict(self.creation_spec.env)