Dont change XDG_DATA_DIRS for child processes in fish shell integration

Fixes #4199
This commit is contained in:
Kovid Goyal
2021-11-07 10:06:18 +05:30
parent 0f23edeec3
commit 35514e0cc3
3 changed files with 43 additions and 10 deletions

View File

@@ -229,9 +229,8 @@ class Child:
env['TERMINFO'] = tdir
opts = fast_data_types.get_options()
if opts.shell_integration != 'disabled':
from .shell_integration import get_supported_shell_name
if get_supported_shell_name(self.argv[0]):
env['KITTY_SHELL_INTEGRATION'] = opts.shell_integration
from .shell_integration import modify_shell_environ
modify_shell_environ(self.argv[0], opts, env)
env = {k: v for k, v in env.items() if v is not DELETE_ENV_VAR}
return env