File tree Expand file tree Collapse file tree 1 file changed +14
-17
lines changed
Plugins/Flow.Launcher.Plugin.Program/Programs Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -333,26 +333,23 @@ private static Win32 LnkProgram(string path)
333
333
program . LnkResolvedPath = Path . GetFullPath ( target ) ;
334
334
program . ExecutableName = Path . GetFileName ( target ) ;
335
335
336
- if ( Extension ( target ) == ExeExtension )
336
+ var args = _helper . arguments ;
337
+ if ( ! string . IsNullOrEmpty ( args ) )
337
338
{
338
- var args = _helper . arguments ;
339
- if ( ! string . IsNullOrEmpty ( args ) )
340
- {
341
- program . LnkResolvedPath += " " + args ;
342
- }
339
+ program . LnkResolvedPath += " " + args ;
340
+ }
343
341
344
- var description = _helper . description ;
345
- if ( ! string . IsNullOrEmpty ( description ) )
346
- {
347
- program . Description = description ;
348
- }
349
- else
342
+ var description = _helper . description ;
343
+ if ( ! string . IsNullOrEmpty ( description ) )
344
+ {
345
+ program . Description = description ;
346
+ }
347
+ else
348
+ {
349
+ var info = FileVersionInfo . GetVersionInfo ( target ) ;
350
+ if ( ! string . IsNullOrEmpty ( info . FileDescription ) )
350
351
{
351
- var info = FileVersionInfo . GetVersionInfo ( target ) ;
352
- if ( ! string . IsNullOrEmpty ( info . FileDescription ) )
353
- {
354
- program . Description = info . FileDescription ;
355
- }
352
+ program . Description = info . FileDescription ;
356
353
}
357
354
}
358
355
}
You can’t perform that action at this time.
0 commit comments