https://bugs.winehq.org/show_bug.cgi?id=51925
--- Comment #5 from O. Nykyforchyn oleh.nyk@gmail.com --- Created attachment 70920 --> https://bugs.winehq.org/attachment.cgi?id=70920 Patch to NTDLL
The attached patch works for me.
WINEDROPENVFORUNIX=help wine notepad
prints a help message:
Syntax: WINEDROPENVFORUNIX=entry,entry,entry..." where each entry is a name of an environment variable which will be unset by Wine when building an environment for any Unix process started from a Windows binary.
Example: WINEDROPENVFORUNIX=ComSpec,COMSPEC,MANPATH
You can also override PATH, HOME, TEMP, or TMP variables passed to Unix processes by setting UNIXPATH, UNIXHOME, UNIXTEMP, or UNIXTMP respectively.
Thus some "fine tuning" of an environment for a Unix process is possible.