Fix a regression in the previous release that caused kitten @ launch --cwd=current to fail over SSH

Fixes #7028
This commit is contained in:
Kovid Goyal 2024-01-21 08:06:44 +05:30
parent f5621bd56c
commit 01ffbfdb42
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 2 deletions

View file

@ -50,6 +50,8 @@ Detailed list of changes
- Fix a regression in the previous release that caused multi-key sequences to not abort when pressing an unknown key (:iss:`7022`)
- Fix a regression in the previous release that caused `kitten @ launch --cwd=current` to fail over SSH (:iss:`7028`)
0.32.0 [2024-01-19]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -178,8 +178,8 @@ def modify_argv_for_launch_with_cwd(self, argv: List[str], env: Optional[Dict[st
env.pop(k, None)
for k in (
'HOME', 'USER', 'TEMP', 'TMP', 'TMPDIR', 'PATH', 'PWD', 'OLDPWD', 'KITTY_INSTALLATION_DIR',
'HOSTNAME', 'SSH_AUTH_SOCK', 'SSH_AGENT_PID', 'KITTY_WINDOW_ID', 'KITTY_STDIO_FORWARDED',
'KITTY_PID', 'KITTY_PUBLIC_KEY', 'KITTY_WINDOW_ID', 'TERMINFO', 'XDG_RUNTIME_DIR', 'XDG_VTNR',
'HOSTNAME', 'SSH_AUTH_SOCK', 'SSH_AGENT_PID', 'KITTY_STDIO_FORWARDED',
'KITTY_PUBLIC_KEY', 'TERMINFO', 'XDG_RUNTIME_DIR', 'XDG_VTNR',
'XDG_DATA_DIRS', 'XAUTHORITY', 'EDITOR', 'VISUAL',
):
env.pop(k, None)