mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Return value of RunAsDesktopUser
This commit is contained in:
parent
9c6c015b1d
commit
8cfaeeae6b
1 changed files with 2 additions and 3 deletions
|
|
@ -586,14 +586,13 @@ namespace Flow.Launcher
|
|||
// Deelevate process if it is running as administrator
|
||||
if (Win32Helper.IsAdministrator() && !runAsAdmin)
|
||||
{
|
||||
Win32Helper.RunAsDesktopUser(filePath, workingDirectory, arguments, out var errorInfo);
|
||||
var result = Win32Helper.RunAsDesktopUser(filePath, workingDirectory, arguments, out var errorInfo);
|
||||
if (!string.IsNullOrEmpty(errorInfo))
|
||||
{
|
||||
LogError(ClassName, $"Failed to start process {filePath} with error: {errorInfo}");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return result;
|
||||
}
|
||||
|
||||
var info = new ProcessStartInfo
|
||||
|
|
|
|||
Loading…
Reference in a new issue