From 335ef6797165cb5b924bb39f64cf4350129abc17 Mon Sep 17 00:00:00 2001 From: Alex Meyer-Gleaves Date: Thu, 1 Sep 2016 01:01:51 +1000 Subject: [PATCH] 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 --- Plugins/Wox.Plugin.Program/Programs/UWP.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Plugins/Wox.Plugin.Program/Programs/UWP.cs b/Plugins/Wox.Plugin.Program/Programs/UWP.cs index 4278256c04..7f7960ba27 100644 --- a/Plugins/Wox.Plugin.Program/Programs/UWP.cs +++ b/Plugins/Wox.Plugin.Program/Programs/UWP.cs @@ -47,8 +47,7 @@ namespace Wox.Plugin.Program.Programs InitializeAppInfo(); Apps = Apps.Where(a => { - var valid = !string.IsNullOrEmpty(a.Executable) && - !string.IsNullOrEmpty(a.UserModelId) && + var valid = !string.IsNullOrEmpty(a.UserModelId) && !string.IsNullOrEmpty(a.DisplayName); return valid; }).ToArray(); @@ -81,7 +80,6 @@ namespace Wox.Plugin.Program.Programs if (appListEntry != "nonoe") { Apps[i].UserModelId = currentApp.GetAppUserModelId(); - Apps[i].Executable = currentApp.GetStringValue("Executable") ?? string.Empty; Apps[i].BackgroundColor = currentApp.GetStringValue("BackgroundColor") ?? string.Empty; Apps[i].LogoPath = Path.Combine(Location, currentApp.GetStringValue("Square44x44Logo")); Apps[i].Location = Location; @@ -157,7 +155,7 @@ namespace Wox.Plugin.Program.Programs var userSecurityId = user.Value; var packageManager = new PackageManager(); 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; } else @@ -196,7 +194,6 @@ namespace Wox.Plugin.Program.Programs public string Description { get; set; } public RandomAccessStreamReference LogoStream { get; set; } public string UserModelId { get; set; } - public string Executable { get; set; } public string PublisherDisplayName { get; set; } public string BackgroundColor { get; set; } public string LogoPath { get; set; }