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[]
466466 . SelectMany ( p => EnumerateProgramsInDir ( p , suffixes ) )
467467 . Distinct ( ) ;
468468
469+ var startupPaths = GetStartupPaths ( ) ;
470+
469471 var programs = ExceptDisabledSource ( allPrograms )
472+ . Where ( x => ! startupPaths . Any ( startup => FilesFolders . PathContains ( startup , x ) ) )
470473 . Select ( x => GetProgramFromPath ( x , protocols ) ) ;
471474 return programs ;
472475 }
@@ -717,6 +720,14 @@ private static IEnumerable<string> GetStartMenuPaths()
717720 return new [ ] { userStartMenu , commonStartMenu } ;
718721 }
719722
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+
720731 public static void WatchProgramUpdate ( Settings settings )
721732 {
722733 var paths = new List < string > ( ) ;
You can’t perform that action at this time.
0 commit comments