Ignore .lnk target file extension

- To avoid query "ex" matching any ".exe" file
This commit is contained in:
VictoriousRaptor 2023-09-28 11:18:17 +08:00
parent a8206dfcde
commit ee8b0702a7

View file

@ -313,7 +313,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
if (!string.IsNullOrEmpty(target) && File.Exists(target))
{
program.LnkResolvedPath = Path.GetFullPath(target);
program.ExecutableName = Path.GetFileName(target);
program.ExecutableName = Path.GetFileNameWithoutExtension(target);
var args = _helper.arguments;
if (!string.IsNullOrEmpty(args))