File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Plugins/Flow.Launcher.Plugin.Program/Programs Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -273,14 +273,13 @@ private static Win32 LnkProgram(string path)
273
273
ShellLinkHelper _helper = new ShellLinkHelper ( ) ;
274
274
string target = _helper . retrieveTargetPath ( path ) ;
275
275
276
- if ( ! string . IsNullOrEmpty ( target ) )
276
+ if ( ! string . IsNullOrEmpty ( target ) && File . Exists ( target ) )
277
277
{
278
- var extension = Extension ( target ) ;
279
- if ( extension == ExeExtension && File . Exists ( target ) )
280
- {
281
- program . LnkResolvedPath = Path . GetFullPath ( target ) ;
282
- program . ExecutableName = Path . GetFileName ( target ) ;
278
+ program . LnkResolvedPath = Path . GetFullPath ( target ) ;
279
+ program . ExecutableName = Path . GetFileName ( target ) ;
283
280
281
+ if ( Extension ( target ) == ExeExtension )
282
+ {
284
283
var args = _helper . arguments ;
285
284
if ( ! string . IsNullOrEmpty ( args ) )
286
285
{
You can’t perform that action at this time.
0 commit comments