Dont send back an rc disallowed response for commands that dont expect responses
This commit is contained in:
parent
fcc0707174
commit
195ea6c140
1 changed files with 7 additions and 1 deletions
|
|
@ -336,7 +336,13 @@ def _handle_remote_command(self, cmd: str, window: Optional[Window] = None, from
|
|||
if not getattr(err, 'hide_traceback', False):
|
||||
response['tb'] = traceback.format_exc()
|
||||
else:
|
||||
response = {'ok': False, 'error': 'Remote control is disabled. Add allow_remote_control to your kitty.conf'}
|
||||
no_response = False
|
||||
try:
|
||||
no_response = json.loads(cmd).get('no_response')
|
||||
except Exception:
|
||||
pass
|
||||
if not no_response:
|
||||
response = {'ok': False, 'error': 'Remote control is disabled. Add allow_remote_control to your kitty.conf'}
|
||||
return response
|
||||
|
||||
def remote_control(self, *args: str) -> None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue