/ src / modules / launcher / Plugins / Microsoft.Plugin.Program / ProgramPluginSettings.cs
ProgramPluginSettings.cs
 1  // Copyright (c) Microsoft Corporation
 2  // The Microsoft Corporation licenses this file to you under the MIT license.
 3  // See the LICENSE file in the project root for more information.
 4  
 5  using System;
 6  using System.Collections.Generic;
 7  
 8  namespace Microsoft.Plugin.Program
 9  {
10      public class ProgramPluginSettings
11      {
12          public DateTime LastIndexTime { get; set; }
13  
14          public List<ProgramSource> ProgramSources { get; set; } = new List<ProgramSource>();
15  
16          public List<DisabledProgramSource> DisabledProgramSources { get; set; } = new List<DisabledProgramSource>();
17  
18          public List<string> ProgramSuffixes { get; set; } = new List<string>() { "bat", "appref-ms", "exe", "lnk", "url" };
19  
20          public List<string> RunCommandSuffixes { get; set; } = new List<string>() { "bat", "appref-ms", "exe", "lnk", "url", "cpl", "msc" };
21  
22          public bool EnableStartMenuSource { get; set; } = true;
23  
24          public bool EnableDesktopSource { get; set; } = true;
25  
26          public bool EnableRegistrySource { get; set; } = true;
27  
28          public bool EnablePathEnvironmentVariableSource { get; set; } = true;
29  
30          public double MinScoreThreshold { get; set; } = 0.75;
31  
32          internal const char SuffixSeparator = ';';
33      }
34  }