mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Merge branch 'background-process-always-inherit-env' of https://github.com/trygveaa/kitty
This commit is contained in:
@@ -15,7 +15,7 @@ from typing import (
|
||||
)
|
||||
from weakref import WeakValueDictionary
|
||||
|
||||
from .child import cached_process_data, cwd_of_process
|
||||
from .child import cached_process_data, cwd_of_process, default_env
|
||||
from .cli import create_opts, parse_args
|
||||
from .cli_stub import CLIOptions
|
||||
from .conf.utils import BadLine, to_cmdline
|
||||
@@ -1221,6 +1221,11 @@ class Boss:
|
||||
cwd_from: Optional[int] = None
|
||||
) -> None:
|
||||
import subprocess
|
||||
env = env or None
|
||||
if env:
|
||||
env_ = default_env().copy()
|
||||
env_.update(env)
|
||||
env = env
|
||||
if cwd_from:
|
||||
with suppress(Exception):
|
||||
cwd = cwd_of_process(cwd_from)
|
||||
|
||||
Reference in New Issue
Block a user