Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method overrides the PATH variable for child processes #23

Open
venimus opened this issue May 23, 2019 · 0 comments
Open

Method overrides the PATH variable for child processes #23

venimus opened this issue May 23, 2019 · 0 comments

Comments

@venimus
Copy link

venimus commented May 23, 2019

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

echo %PATH%

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant