mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
Fix ShellExecCmdLine fucntion. Using global::System.Diagnostics.Process.Start to run program without working directory specifying.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user