File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Plugins/Flow.Launcher.Plugin.Program/Programs Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -466,7 +466,10 @@ private static IEnumerable<Win32> StartMenuPrograms(string[] suffixes, string[]
466
466
. SelectMany ( p => EnumerateProgramsInDir ( p , suffixes ) )
467
467
. Distinct ( ) ;
468
468
469
+ var startupPaths = GetStartupPaths ( ) ;
470
+
469
471
var programs = ExceptDisabledSource ( allPrograms )
472
+ . Where ( x => ! startupPaths . Any ( startup => FilesFolders . PathContains ( startup , x ) ) )
470
473
. Select ( x => GetProgramFromPath ( x , protocols ) ) ;
471
474
return programs ;
472
475
}
@@ -717,6 +720,14 @@ private static IEnumerable<string> GetStartMenuPaths()
717
720
return new [ ] { userStartMenu , commonStartMenu } ;
718
721
}
719
722
723
+ private static IEnumerable < string > GetStartupPaths ( )
724
+ {
725
+ var userStartup = Environment . GetFolderPath ( Environment . SpecialFolder . Startup ) ;
726
+ var commonStartup = Environment . GetFolderPath ( Environment . SpecialFolder . CommonStartup ) ;
727
+
728
+ return new [ ] { userStartup , commonStartup } ;
729
+ }
730
+
720
731
public static void WatchProgramUpdate ( Settings settings )
721
732
{
722
733
var paths = new List < string > ( ) ;
You can’t perform that action at this time.
0 commit comments