Launch new task for Launch Program with Profile

This commit is contained in:
Travis Nickles 2017-05-09 16:34:56 -07:00
parent 0e6514a072
commit 7e61f52dd1

View File

@ -7,6 +7,7 @@ using System.Xml;
using System.Drawing;
using System.Security.Principal;
using System.Threading.Tasks;
namespace DS4Windows
{
@ -2003,6 +2004,8 @@ namespace DS4Windows
}
if (!procFound)
{
Task processTask = new Task(() =>
{
System.Diagnostics.Process tempProcess = new System.Diagnostics.Process();
tempProcess.StartInfo.FileName = programPath;
@ -2010,6 +2013,9 @@ namespace DS4Windows
//tempProcess.StartInfo.UseShellExecute = false;
try { tempProcess.Start(); }
catch { }
});
processTask.Start();
}
}