mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-11 15:59:08 +01:00
Launch new task for Launch Program with Profile
This commit is contained in:
parent
0e6514a072
commit
7e61f52dd1
@ -7,6 +7,7 @@ using System.Xml;
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
|
||||||
using System.Security.Principal;
|
using System.Security.Principal;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace DS4Windows
|
namespace DS4Windows
|
||||||
{
|
{
|
||||||
@ -2004,12 +2005,17 @@ namespace DS4Windows
|
|||||||
|
|
||||||
if (!procFound)
|
if (!procFound)
|
||||||
{
|
{
|
||||||
System.Diagnostics.Process tempProcess = new System.Diagnostics.Process();
|
Task processTask = new Task(() =>
|
||||||
tempProcess.StartInfo.FileName = programPath;
|
{
|
||||||
tempProcess.StartInfo.WorkingDirectory = new FileInfo(programPath).Directory.ToString();
|
System.Diagnostics.Process tempProcess = new System.Diagnostics.Process();
|
||||||
//tempProcess.StartInfo.UseShellExecute = false;
|
tempProcess.StartInfo.FileName = programPath;
|
||||||
try { tempProcess.Start(); }
|
tempProcess.StartInfo.WorkingDirectory = new FileInfo(programPath).Directory.ToString();
|
||||||
catch { }
|
//tempProcess.StartInfo.UseShellExecute = false;
|
||||||
|
try { tempProcess.Start(); }
|
||||||
|
catch { }
|
||||||
|
});
|
||||||
|
|
||||||
|
processTask.Start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user