From 02d06d6726a014b5e31ff8a475ba010f6b2b8e0d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 16 Aug 2022 10:51:54 +0530 Subject: [PATCH] Fix --allow-remote-control without passwords not working --- kitty/window.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kitty/window.py b/kitty/window.py index 5913a498e..981c3b00e 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -523,8 +523,10 @@ class Window: self.allow_remote_control = allow_remote_control def remote_control_allowed(self, pcmd: Dict[str, Any], extra_data: Dict[str, Any]) -> bool: - if not self.allow_remote_control or not self.remote_control_passwords: + if not self.allow_remote_control: return False + if not self.remote_control_passwords: + return True pw = pcmd.get('password', '') auth_items = self.remote_control_passwords.get(pw) if pw == '!':