mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Hide programs in startmenu/startup folder
This commit is contained in:
parent
2c67557a67
commit
c5c7bf783c
1 changed files with 11 additions and 0 deletions
|
|
@ -466,7 +466,10 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
|||
.SelectMany(p => EnumerateProgramsInDir(p, suffixes))
|
||||
.Distinct();
|
||||
|
||||
var startupPaths = GetStartupPaths();
|
||||
|
||||
var programs = ExceptDisabledSource(allPrograms)
|
||||
.Where(x => !startupPaths.Any(startup => FilesFolders.PathContains(startup, x)))
|
||||
.Select(x => GetProgramFromPath(x, protocols));
|
||||
return programs;
|
||||
}
|
||||
|
|
@ -717,6 +720,14 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
|||
return new[] { userStartMenu, commonStartMenu };
|
||||
}
|
||||
|
||||
private static IEnumerable<string> GetStartupPaths()
|
||||
{
|
||||
var userStartup = Environment.GetFolderPath(Environment.SpecialFolder.Startup);
|
||||
var commonStartup = Environment.GetFolderPath(Environment.SpecialFolder.CommonStartup);
|
||||
|
||||
return new[] { userStartup, commonStartup };
|
||||
}
|
||||
|
||||
public static void WatchProgramUpdate(Settings settings)
|
||||
{
|
||||
var paths = new List<string>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue