Trim Windows list down based on review

This commit is contained in:
Justin Spahr-Summers 2024-11-05 12:10:24 +00:00
commit 08b89404a3
No known key found for this signature in database

View file

@ -29,23 +29,17 @@ export type StdioServerParameters = {
export const DEFAULT_INHERITED_ENV_VARS =
process.platform === "win32"
? [
"ALLUSERSPROFILE",
"APPDATA",
"HOMEDRIVE",
"HOMEPATH",
"LOCALAPPDATA",
"NUMBER_OF_PROCESSORS",
"OS",
"PATH",
"PATHEXT",
"PROCESSOR_ARCHITECTURE",
"SYSTEMDRIVE",
"SYSTEMROOT",
"TEMP",
"TMP",
"USERNAME",
"USERPROFILE",
"WINDIR",
]
: /* list inspired by the default env inheritance of sudo */
["HOME", "LOGNAME", "PATH", "SHELL", "TERM", "USER"];