Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@
var namespaceManager = new XmlNamespaceManager(xmlDoc.NameTable);
namespaceManager.AddNamespace("d",
"http://schemas.microsoft.com/appx/manifest/foundation/windows10"); // still need a name
namespaceManager.AddNamespace("rescap",

Check warning on line 89 in Plugins/Flow.Launcher.Plugin.Program/Programs/UWPPackage.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`rescap` is not a recognized word. (unrecognized-spelling)
"http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities");
namespaceManager.AddNamespace("uap10", "http://schemas.microsoft.com/appx/manifest/uap/windows10/10");

Check warning on line 91 in Plugins/Flow.Launcher.Plugin.Program/Programs/UWPPackage.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`uap` is not a recognized word. (unrecognized-spelling)

Check warning on line 91 in Plugins/Flow.Launcher.Plugin.Program/Programs/UWPPackage.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`uap` is not a recognized word. (unrecognized-spelling)

var allowElevationNode =
xmlRoot.SelectSingleNode("//rescap:Capability[@Name='allowElevation']", namespaceManager);

Check warning on line 94 in Plugins/Flow.Launcher.Plugin.Program/Programs/UWPPackage.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`rescap` is not a recognized word. (unrecognized-spelling)
bool packageCanElevate = allowElevationNode != null;

var appsNode = xmlRoot.SelectSingleNode("d:Applications", namespaceManager);
Expand Down Expand Up @@ -290,12 +290,12 @@
}

private static readonly Channel<byte> PackageChangeChannel = Channel.CreateBounded<byte>(1);
private static PackageCatalog catalog = PackageCatalog.OpenForCurrentUser();

public static async Task WatchPackageChangeAsync()
{
if (Environment.OSVersion.Version.Major >= 10)
{
var catalog = PackageCatalog.OpenForCurrentUser();
catalog.PackageInstalling += (_, args) =>
{
if (args.IsComplete)
Expand Down Expand Up @@ -457,7 +457,7 @@
_ = Task.Run(() => Launch(shouldRunElevated)).ConfigureAwait(false);
if (elevated && !shouldRunElevated)
{
var title = api.GetTranslation("flowlauncher_plugin_program_disable_dlgtitle_error");

Check warning on line 460 in Plugins/Flow.Launcher.Plugin.Program/Programs/UWPPackage.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`dlgtitle` is not a recognized word. (unrecognized-spelling)
var message =
api.GetTranslation(
"flowlauncher_plugin_program_run_as_administrator_not_supported_message");
Expand Down Expand Up @@ -523,7 +523,7 @@
// and https://learn.microsoft.com/uwp/schemas/appxpackage/uapmanifestschema/element-application#attributes

return appNode?.Attributes["EntryPoint"]?.Value == "Windows.FullTrustApplication" ||
appNode?.Attributes["uap10:TrustLevel"]?.Value == "mediumIL";

Check warning on line 526 in Plugins/Flow.Launcher.Plugin.Program/Programs/UWPPackage.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`uap` is not a recognized word. (unrecognized-spelling)
}

internal string LogoPathFromUri(string uri, (int, int) desiredSize)
Expand Down Expand Up @@ -584,7 +584,7 @@

// Currently we don't care which one to choose
// Just ignore all qualifiers
// select like logo.[xxx_yyy].png

Check warning on line 587 in Plugins/Flow.Launcher.Plugin.Program/Programs/UWPPackage.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`yyy` is not a recognized word. (unrecognized-spelling)
// https://learn.microsoft.com/en-us/windows/uwp/app-resources/tailor-resources-lang-scale-contrast

// todo select from file name like pt run
Expand Down Expand Up @@ -702,7 +702,7 @@
// var bitmap = new RenderTargetBitmap(
// Convert.ToInt32(width), Convert.ToInt32(height),
// dpiScale100, dpiScale100,
// PixelFormats.Pbgra32

Check warning on line 705 in Plugins/Flow.Launcher.Plugin.Program/Programs/UWPPackage.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`Pbgra` is not a recognized word. (unrecognized-spelling)
// );
// bitmap.Render(visual);
// return bitmap;
Expand Down
Loading