mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
rename
This commit is contained in:
19
Plugins/Wox.Plugin.Program/Programs/StartMenu.cs
Normal file
19
Plugins/Wox.Plugin.Program/Programs/StartMenu.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Wox.Plugin.Program.ProgramSources
|
||||
{
|
||||
[Serializable]
|
||||
class StartMenu : Win32
|
||||
{
|
||||
public override List<Program> LoadPrograms()
|
||||
{
|
||||
var directory1 = Environment.GetFolderPath(Environment.SpecialFolder.Programs);
|
||||
var directory2 = Environment.GetFolderPath(Environment.SpecialFolder.CommonPrograms);
|
||||
var programs = new List<Program>();
|
||||
GetAppFromDirectory(programs, directory1, MaxDepth);
|
||||
GetAppFromDirectory(programs, directory2, MaxDepth);
|
||||
return programs;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user