File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Plugins/Flow.Launcher.Plugin.Program/Programs Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ private static Win32 ExeProgram(string path)
357
357
}
358
358
}
359
359
360
- private static IEnumerable < string > ProgramPaths ( string directory , string [ ] suffixes , bool recursive = true )
360
+ private static IEnumerable < string > ProgramPaths ( string directory , string [ ] suffixes , bool recursive = true )
361
361
{
362
362
if ( ! Directory . Exists ( directory ) )
363
363
return Enumerable . Empty < string > ( ) ;
@@ -422,13 +422,14 @@ private static IEnumerable<Win32> StartMenuPrograms(string[] suffixes)
422
422
private static IEnumerable < Win32 > PATHPrograms ( string [ ] suffixes )
423
423
{
424
424
var pathEnv = Environment . GetEnvironmentVariable ( "Path" ) ;
425
- if ( String . IsNullOrEmpty ( pathEnv ) ) {
425
+ if ( String . IsNullOrEmpty ( pathEnv ) )
426
+ {
426
427
return Array . Empty < Win32 > ( ) ;
427
428
}
428
429
429
430
var paths = pathEnv . Split ( ";" , StringSplitOptions . RemoveEmptyEntries ) . DistinctBy ( p => p . ToLowerInvariant ( ) ) ;
430
431
431
- var toFilter = paths . SelectMany ( p => ProgramPaths ( p , suffixes , recursive : false ) ) ;
432
+ var toFilter = paths . SelectMany ( p => ProgramPaths ( p , suffixes , recursive : false ) ) ;
432
433
433
434
var programs = ExceptDisabledSource ( toFilter . Distinct ( ) )
434
435
. Select ( x => Extension ( x ) switch
You can’t perform that action at this time.
0 commit comments