From 112e6ab232031dec412c4e950f48c48ae5133553 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Thu, 9 Nov 2017 22:14:49 -0600 Subject: [PATCH] Add delay before executing program linked to a profile --- DS4Windows/DS4Control/ControlService.cs | 1 + DS4Windows/DS4Control/ScpUtil.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs index 1d89f8a..5c6366b 100644 --- a/DS4Windows/DS4Control/ControlService.cs +++ b/DS4Windows/DS4Control/ControlService.cs @@ -416,6 +416,7 @@ namespace DS4Windows { Task processTask = new Task(() => { + Task.Delay(5000).Wait(); System.Diagnostics.Process tempProcess = new System.Diagnostics.Process(); tempProcess.StartInfo.FileName = programPath; tempProcess.StartInfo.WorkingDirectory = new FileInfo(programPath).Directory.ToString(); diff --git a/DS4Windows/DS4Control/ScpUtil.cs b/DS4Windows/DS4Control/ScpUtil.cs index b3a0a4e..fa85d69 100644 --- a/DS4Windows/DS4Control/ScpUtil.cs +++ b/DS4Windows/DS4Control/ScpUtil.cs @@ -2324,6 +2324,7 @@ namespace DS4Windows { Task processTask = new Task(() => { + Task.Delay(5000).Wait(); System.Diagnostics.Process tempProcess = new System.Diagnostics.Process(); tempProcess.StartInfo.FileName = programPath; tempProcess.StartInfo.WorkingDirectory = new FileInfo(programPath).Directory.ToString();