Merge pull request #312 from junjie020/master

Specify a working directory when run a program from a process
This commit is contained in:
qianlifeng 2015-08-17 11:31:50 +08:00
commit b7c024d275

View file

@ -146,7 +146,7 @@ namespace Wox.Infrastructure
startInfo.WindowStyle = global::System.Diagnostics.ProcessWindowStyle.Normal;
startInfo.ErrorDialog = (dwSeclFlags | ShellExecCmdLineFlags.SECL_NO_UI) == 0;
startInfo.ErrorDialogParentHandle = hwnd;
startInfo.WorkingDirectory = startDir;
try
{
global::System.Diagnostics.Process.Start(startInfo);