mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 03:37:10 +08:00
Fix ShellExecCmdLine fucntion. Using global::System.Diagnostics.Process.Start to run program without working directory specifying.
This commit is contained in:
parent
2a0e641de7
commit
cf76c943b8
@ -146,7 +146,7 @@ namespace Wox.Infrastructure
|
|||||||
startInfo.WindowStyle = global::System.Diagnostics.ProcessWindowStyle.Normal;
|
startInfo.WindowStyle = global::System.Diagnostics.ProcessWindowStyle.Normal;
|
||||||
startInfo.ErrorDialog = (dwSeclFlags | ShellExecCmdLineFlags.SECL_NO_UI) == 0;
|
startInfo.ErrorDialog = (dwSeclFlags | ShellExecCmdLineFlags.SECL_NO_UI) == 0;
|
||||||
startInfo.ErrorDialogParentHandle = hwnd;
|
startInfo.ErrorDialogParentHandle = hwnd;
|
||||||
|
startInfo.WorkingDirectory = startDir;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
global::System.Diagnostics.Process.Start(startInfo);
|
global::System.Diagnostics.Process.Start(startInfo);
|
||||||
|
Loading…
Reference in New Issue
Block a user