mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Use new api for uwp package opening
This commit is contained in:
parent
2c0210c480
commit
898dbb8402
1 changed files with 2 additions and 9 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Security.Principal;
|
using System.Security.Principal;
|
||||||
|
|
@ -516,14 +515,8 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
||||||
var command = "shell:AppsFolder\\" + UserModelId;
|
var command = "shell:AppsFolder\\" + UserModelId;
|
||||||
command = Environment.ExpandEnvironmentVariables(command.Trim());
|
command = Environment.ExpandEnvironmentVariables(command.Trim());
|
||||||
|
|
||||||
var info = new ProcessStartInfo()
|
_ = Task.Run(() => Main.Context.API.StartProcess(
|
||||||
{
|
command, string.Empty, string.Empty, true, elevated ? "runas" : ""));
|
||||||
FileName = command,
|
|
||||||
UseShellExecute = true,
|
|
||||||
Verb = elevated ? "runas" : ""
|
|
||||||
};
|
|
||||||
|
|
||||||
_ = Task.Run(() => Main.StartProcess(Process.Start, info)).ConfigureAwait(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static bool IfAppCanRunElevated(XmlNode appNode)
|
internal static bool IfAppCanRunElevated(XmlNode appNode)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue