mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Improve UWP indexing #954
1. enable WinJS based UWP 2. ms bug of InstalledLocation: https://connect.microsoft.com/VisualStudio/feedback/details/1690879/vs2015-cannot-auto-uninstall-universal-windows-appss-debug-item
This commit is contained in:
parent
d463f5a032
commit
335ef67971
1 changed files with 2 additions and 5 deletions
|
|
@ -47,8 +47,7 @@ namespace Wox.Plugin.Program.Programs
|
||||||
InitializeAppInfo();
|
InitializeAppInfo();
|
||||||
Apps = Apps.Where(a =>
|
Apps = Apps.Where(a =>
|
||||||
{
|
{
|
||||||
var valid = !string.IsNullOrEmpty(a.Executable) &&
|
var valid = !string.IsNullOrEmpty(a.UserModelId) &&
|
||||||
!string.IsNullOrEmpty(a.UserModelId) &&
|
|
||||||
!string.IsNullOrEmpty(a.DisplayName);
|
!string.IsNullOrEmpty(a.DisplayName);
|
||||||
return valid;
|
return valid;
|
||||||
}).ToArray();
|
}).ToArray();
|
||||||
|
|
@ -81,7 +80,6 @@ namespace Wox.Plugin.Program.Programs
|
||||||
if (appListEntry != "nonoe")
|
if (appListEntry != "nonoe")
|
||||||
{
|
{
|
||||||
Apps[i].UserModelId = currentApp.GetAppUserModelId();
|
Apps[i].UserModelId = currentApp.GetAppUserModelId();
|
||||||
Apps[i].Executable = currentApp.GetStringValue("Executable") ?? string.Empty;
|
|
||||||
Apps[i].BackgroundColor = currentApp.GetStringValue("BackgroundColor") ?? string.Empty;
|
Apps[i].BackgroundColor = currentApp.GetStringValue("BackgroundColor") ?? string.Empty;
|
||||||
Apps[i].LogoPath = Path.Combine(Location, currentApp.GetStringValue("Square44x44Logo"));
|
Apps[i].LogoPath = Path.Combine(Location, currentApp.GetStringValue("Square44x44Logo"));
|
||||||
Apps[i].Location = Location;
|
Apps[i].Location = Location;
|
||||||
|
|
@ -157,7 +155,7 @@ namespace Wox.Plugin.Program.Programs
|
||||||
var userSecurityId = user.Value;
|
var userSecurityId = user.Value;
|
||||||
var packageManager = new PackageManager();
|
var packageManager = new PackageManager();
|
||||||
var packages = packageManager.FindPackagesForUser(userSecurityId);
|
var packages = packageManager.FindPackagesForUser(userSecurityId);
|
||||||
packages = packages.Where(p => !p.IsFramework && !string.IsNullOrEmpty(p.InstalledLocation.Path));
|
packages = packages.Where(p => !p.IsFramework && !p.IsDevelopmentMode && !string.IsNullOrEmpty(p.InstalledLocation.Path));
|
||||||
return packages;
|
return packages;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -196,7 +194,6 @@ namespace Wox.Plugin.Program.Programs
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
public RandomAccessStreamReference LogoStream { get; set; }
|
public RandomAccessStreamReference LogoStream { get; set; }
|
||||||
public string UserModelId { get; set; }
|
public string UserModelId { get; set; }
|
||||||
public string Executable { get; set; }
|
|
||||||
public string PublisherDisplayName { get; set; }
|
public string PublisherDisplayName { get; set; }
|
||||||
public string BackgroundColor { get; set; }
|
public string BackgroundColor { get; set; }
|
||||||
public string LogoPath { get; set; }
|
public string LogoPath { get; set; }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue