Skip to content

Commit

Permalink
remote_control_password: Fix using a password without any actions not…
Browse files Browse the repository at this point in the history
… working

Fixes #8082
  • Loading branch information
kovidgoyal committed Nov 26, 2024
1 parent 8b8b618 commit cf2aaaf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ Detailed list of changes

- panel kitten: Allow creating floating and on-top panels with arbitrary placement and size on Wayland (:pull:`8068`)

- :opt:`remote_control_password`: Fix using a password without any actions not working (:iss:`8082`)

0.37.0 [2024-10-30]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion kitty/options/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ def remote_control_password(val: str, current_val: Dict[str, str]) -> Iterable[T
# line of remote_control_password
raise ValueError('Passwords are not allowed to start with hyphens, ignoring this password')
if len(parts) == 1:
yield "", (parts[0],)
yield parts[0], ()
else:
yield parts[0], tuple(parts[1:])

Expand Down
2 changes: 1 addition & 1 deletion kitty/remote_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def remote_control_allowed(

class PasswordAuthorizer:

def __init__(self, auth_items: frozenset[str]) -> None:
def __init__(self, auth_items: Iterable[str]) -> None:
self.command_patterns = []
self.function_checkers = []
self.name = ''
Expand Down

0 comments on commit cf2aaaf

Please sign in to comment.