Add delay before executing program linked to a profile

This commit is contained in:
Travis Nickles 2017-11-09 22:14:49 -06:00
parent b70e145284
commit 112e6ab232
2 changed files with 2 additions and 0 deletions

View File

@ -416,6 +416,7 @@ namespace DS4Windows
{ {
Task processTask = new Task(() => Task processTask = new Task(() =>
{ {
Task.Delay(5000).Wait();
System.Diagnostics.Process tempProcess = new System.Diagnostics.Process(); System.Diagnostics.Process tempProcess = new System.Diagnostics.Process();
tempProcess.StartInfo.FileName = programPath; tempProcess.StartInfo.FileName = programPath;
tempProcess.StartInfo.WorkingDirectory = new FileInfo(programPath).Directory.ToString(); tempProcess.StartInfo.WorkingDirectory = new FileInfo(programPath).Directory.ToString();

View File

@ -2324,6 +2324,7 @@ namespace DS4Windows
{ {
Task processTask = new Task(() => Task processTask = new Task(() =>
{ {
Task.Delay(5000).Wait();
System.Diagnostics.Process tempProcess = new System.Diagnostics.Process(); System.Diagnostics.Process tempProcess = new System.Diagnostics.Process();
tempProcess.StartInfo.FileName = programPath; tempProcess.StartInfo.FileName = programPath;
tempProcess.StartInfo.WorkingDirectory = new FileInfo(programPath).Directory.ToString(); tempProcess.StartInfo.WorkingDirectory = new FileInfo(programPath).Directory.ToString();