Skip to content

Commit 7fd174a

Browse files
authored
Update LaunchHelper.cs
1 parent d7a84b0 commit 7fd174a

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/Files.App/Shell/LaunchHelper.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,12 @@ private static async Task<bool> HandleApplicationLaunch(string application, stri
9797
}
9898
catch (Win32Exception)
9999
{
100-
using Process process = new()
101-
{
102-
StartInfo.UseShellExecute = true,
103-
StartInfo.FileName = application,
104-
StartInfo.CreateNoWindow = true,
105-
StartInfo.Arguments = arguments,
106-
StartInfo.WorkingDirectory = workingDirectory
107-
};
100+
using Process process = new Process();
101+
process.StartInfo.UseShellExecute = true;
102+
process.StartInfo.FileName = application;
103+
process.StartInfo.CreateNoWindow = true;
104+
process.StartInfo.Arguments = arguments;
105+
process.StartInfo.WorkingDirectory = workingDirectory;
108106

109107
try
110108
{

0 commit comments

Comments
 (0)