mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-16 21:45:03 +02:00
Use a custom askpass implementation
Keeps OpenSSH from using the tty hopefully allowing us to start sending data without needing to wait for the remote side to request it.
This commit is contained in:
@@ -523,6 +523,11 @@ def main(args: List[str]) -> NoReturn:
|
||||
cmd += rcmd
|
||||
if use_control_master:
|
||||
cmd[insertion_point:insertion_point] = connection_sharing_args(host_opts, int(os.environ['KITTY_PID']))
|
||||
# We force use of askpass so that OpenSSH does not use the tty leaving
|
||||
# it free for us to use
|
||||
os.environ['SSH_ASKPASS_REQUIRE'] = 'force'
|
||||
if not os.environ.get('SSH_ASKPASS'):
|
||||
os.environ['SSH_ASKPASS'] = os.path.join(shell_integration_dir, 'ssh', 'askpass.py')
|
||||
import subprocess
|
||||
with suppress(FileNotFoundError):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user