Update comments

This commit is contained in:
Vic 2022-12-31 17:42:42 +08:00
parent c6ff0a5113
commit 207b29f816

View file

@ -30,14 +30,17 @@ namespace Flow.Launcher.Plugin.Program.Programs
/// </summary> /// </summary>
public string FullPath { get; set; } public string FullPath { get; set; }
/// <summary> /// <summary>
/// Path of the excutable for .lnk, or the URL for .url. Arguments are included if any. /// Path of the executable for .lnk, or the URL for .url. Arguments are included if any.
/// </summary> /// </summary>
public string LnkResolvedPath { get; set; } public string LnkResolvedPath { get; set; }
/// <summary> /// <summary>
/// Path of the actual executable file. /// Path of the actual executable file. Args are included.
/// </summary> /// </summary>
public string ExecutablePath => LnkResolvedPath ?? FullPath; public string ExecutablePath => LnkResolvedPath ?? FullPath;
public string ParentDirectory { get; set; } public string ParentDirectory { get; set; }
/// <summary>
/// Name of the executable for .lnk files
/// </summary>
public string ExecutableName { get; set; } public string ExecutableName { get; set; }
public string Description { get; set; } public string Description { get; set; }
public bool Valid { get; set; } public bool Valid { get; set; }
@ -584,7 +587,6 @@ namespace Flow.Launcher.Plugin.Program.Programs
private static IEnumerable<Win32> ProgramsHasher(IEnumerable<Win32> programs) private static IEnumerable<Win32> ProgramsHasher(IEnumerable<Win32> programs)
{ {
// TODO: Unable to distinguish multiple lnks to the same excutable but with different params
return programs.GroupBy(p => p.ExecutablePath.ToLowerInvariant()) return programs.GroupBy(p => p.ExecutablePath.ToLowerInvariant())
.AsParallel() .AsParallel()
.SelectMany(g => .SelectMany(g =>