Do not set KITTY_LISTEN_ON after the window rc password is configured

This commit is contained in:
pagedown
2022-08-17 19:37:52 +08:00
parent 2898a3ef8c
commit a5bb2548a6

View File

@@ -446,7 +446,7 @@ class Tab: # {{{
) -> Window:
child = self.launch_child(
use_shell=use_shell, cmd=cmd, stdin=stdin, cwd_from=cwd_from, cwd=cwd, env=env,
is_clone_launch=is_clone_launch, add_listen_on_env_var=not allow_remote_control
is_clone_launch=is_clone_launch, add_listen_on_env_var=False if allow_remote_control and remote_control_passwords else True
)
window = Window(
self, child, self.args, override_title=override_title,