Method overrides the PATH variable for child processes
|
if (! SetEnvironmentVariableW(L"PATH", newpath)) { |
This results of PATH variable that does not include the parent process PATH. This may cause problems in certain cases where launcher start other processes that depend on the env
...
[test.desktop]
name = test
comment = Test cmd for Windows
exec = ./test.cmd
and in test.cmd
for instance we might use some commands that reside in Windows\System32 but in this environment PATH will not include it, which will make it fail with ...is not recognized as an internal or external command, operable program or batch file.
Method overrides the PATH variable for child processes
styrene/styrene/data/launcherstub.c
Line 112 in ad3a94b
This results of PATH variable that does not include the parent process PATH. This may cause problems in certain cases where launcher start other processes that depend on the env
and in test.cmd
for instance we might use some commands that reside in
Windows\System32but in this environment PATH will not include it, which will make it fail with...is not recognized as an internal or external command, operable program or batch file.