Merge pull request #2367 from VictoriousRaptor/ignore-extensions

Ignore .lnk target file extension
This commit is contained in:
VictoriousRaptor 2023-10-03 18:22:09 +08:00 committed by GitHub
commit a5348cc83a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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))