minor fix

This commit is contained in:
Vic 2022-11-01 01:18:54 +08:00
parent ac7a1a7ce8
commit 24afcb22a1

View file

@ -381,7 +381,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
return Array.Empty<Win32>();
}
var paths = pathEnv.Split(";", StringSplitOptions.RemoveEmptyEntries).DistinctBy(p => p.ToLower());
var paths = pathEnv.Split(";", StringSplitOptions.RemoveEmptyEntries).DistinctBy(p => p.ToLowerInvariant());
var toFilter = paths.SelectMany(p => ProgramPaths(p, suffixes, recursive:false));