launch win32 lnk programs using LnkResolvedPath

use LnkResolvedPath which is the original lnk path, rather than using the FullPath property which is assigned with the path to the actual exe
This commit is contained in:
Jeremy Wu 2020-08-19 21:02:46 +10:00
parent 9c7dc054de
commit b52dbbea53

View file

@ -54,7 +54,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
var result = new Result
{
SubTitle = FullPath,
SubTitle = LnkResolvedPath ?? FullPath,
IcoPath = IcoPath,
Score = score,
ContextData = this,
@ -62,7 +62,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
{
var info = new ProcessStartInfo
{
FileName = FullPath,
FileName = LnkResolvedPath ?? FullPath,
WorkingDirectory = ParentDirectory,
UseShellExecute = true
};