Skip to content

Commit

Permalink
(#112) Fix launch of URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jibedoubleve committed Jan 30, 2023
1 parent fa87633 commit 3ea47b9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Lanceur.Infra/Managers/ExecutionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,9 @@ private IEnumerable<QueryResult> ExecuteProcess(AliasQueryResult query)
FileName = _wildcardManager.Replace(query.FileName, query.Query.Parameters),
Verb = "open",
Arguments = _wildcardManager.HandleArgument(query.Arguments, query.Query.Parameters),
UseShellExecute = false,
UseShellExecute = true,
WorkingDirectory = query.WorkingDirectory,
WindowStyle = query.StartMode.AsWindowsStyle(),
RedirectStandardOutput = true,
RedirectStandardError = true,
};

if (query.IsPrivilegeOverriden || query.RunAs == Constants.RunAs.Admin)
Expand All @@ -77,7 +75,7 @@ private IEnumerable<QueryResult> ExecuteProcess(AliasQueryResult query)
_log.Info($"Runs '{query.FileName}' as ADMIN");
}

using var process = Process.Start(psi);
using var _ = Process.Start(psi);
return QueryResult.NoResult;
}

Expand Down

0 comments on commit 3ea47b9

Please sign in to comment.