mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-06 16:05:05 +02:00
On second thoughts dont inject PATH as it is already handled by which() and exe_search_paths
This commit is contained in:
@@ -479,7 +479,6 @@ def setup_environment(opts: Options, cli_opts: CLIOptions) -> None:
|
||||
from_config_file = True
|
||||
if cli_opts.listen_on:
|
||||
cli_opts.listen_on = expand_listen_on(cli_opts.listen_on, from_config_file)
|
||||
path_from_shell = ''
|
||||
if vars := opts.env.pop('read_from_shell', ''):
|
||||
import fnmatch
|
||||
import re
|
||||
@@ -489,12 +488,8 @@ def setup_environment(opts: Options, cli_opts: CLIOptions) -> None:
|
||||
for k, v in senv.items():
|
||||
for pat in patterns:
|
||||
if pat.match(k) is not None:
|
||||
if k == 'PATH':
|
||||
path_from_shell = v
|
||||
opts.env[k] = v
|
||||
break
|
||||
if path_from_shell:
|
||||
os.environ['PATH'] = path_from_shell
|
||||
env = opts.env.copy()
|
||||
ensure_kitty_in_path()
|
||||
ensure_kitten_in_path()
|
||||
|
||||
Reference in New Issue
Block a user