Skip to content

Method overrides the PATH variable for child processes #23

@venimus

Description

@venimus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions