Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Launcher ignores commands on environment path #6

Open
feldrim opened this issue Dec 20, 2018 · 0 comments
Open

Launcher ignores commands on environment path #6

feldrim opened this issue Dec 20, 2018 · 0 comments

Comments

@feldrim
Copy link

feldrim commented Dec 20, 2018

The line below sets the default behavior for process paths as accepting only full paths.

internal static Regex ProgramPath = new Regex(@"([A-Z]:\\[^/:\*\?<>\|]+\.((exe)))|(\\{2}[^/:\*\?<>\|]+\.((exe)))", RegexOptions.IgnoreCase);

That makes the line below to give exception because "notepad" is called from environment path adn does not include full path.

var wardenTest = await WardenProcess.Start("notepad", string.Empty, null);

Until the ProgramPath Regex is modified, the README and WardenExample project can be changed accordingly.

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

No branches or pull requests

1 participant