mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 11:17:53 +01:00
Fix Docker desktop not found in program plugin issue (#6882)
* Fix docker lnk not found issue * Add common desktop folder location to desktop program * Add CommonDesktopDirectory to file watchers
This commit is contained in:
committed by
GitHub
parent
eae0937db0
commit
2bd6c5c664
@@ -780,8 +780,8 @@ namespace Microsoft.Plugin.Program.Programs
|
|||||||
|
|
||||||
private static ParallelQuery<Win32Program> StartMenuPrograms(IList<string> suffixes)
|
private static ParallelQuery<Win32Program> StartMenuPrograms(IList<string> suffixes)
|
||||||
{
|
{
|
||||||
var directory1 = Environment.GetFolderPath(Environment.SpecialFolder.Programs);
|
var directory1 = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu);
|
||||||
var directory2 = Environment.GetFolderPath(Environment.SpecialFolder.CommonPrograms);
|
var directory2 = Environment.GetFolderPath(Environment.SpecialFolder.CommonStartMenu);
|
||||||
List<string> indexLocation = new List<string>() { directory1, directory2 };
|
List<string> indexLocation = new List<string>() { directory1, directory2 };
|
||||||
|
|
||||||
return IndexPath(suffixes, indexLocation);
|
return IndexPath(suffixes, indexLocation);
|
||||||
@@ -790,7 +790,9 @@ namespace Microsoft.Plugin.Program.Programs
|
|||||||
private static ParallelQuery<Win32Program> DesktopPrograms(IList<string> suffixes)
|
private static ParallelQuery<Win32Program> DesktopPrograms(IList<string> suffixes)
|
||||||
{
|
{
|
||||||
var directory1 = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
|
var directory1 = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
|
||||||
List<string> indexLocation = new List<string>() { directory1 };
|
var directory2 = Environment.GetFolderPath(Environment.SpecialFolder.CommonDesktopDirectory);
|
||||||
|
|
||||||
|
List<string> indexLocation = new List<string>() { directory1, directory2 };
|
||||||
|
|
||||||
return IndexPath(suffixes, indexLocation);
|
return IndexPath(suffixes, indexLocation);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,9 +28,10 @@ namespace Microsoft.Plugin.Program.Storage
|
|||||||
{
|
{
|
||||||
string[] paths = new string[]
|
string[] paths = new string[]
|
||||||
{
|
{
|
||||||
Environment.GetFolderPath(Environment.SpecialFolder.Programs),
|
Environment.GetFolderPath(Environment.SpecialFolder.StartMenu),
|
||||||
Environment.GetFolderPath(Environment.SpecialFolder.CommonPrograms),
|
Environment.GetFolderPath(Environment.SpecialFolder.CommonStartMenu),
|
||||||
Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
|
Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
|
||||||
|
Environment.GetFolderPath(Environment.SpecialFolder.CommonDesktopDirectory),
|
||||||
};
|
};
|
||||||
return paths;
|
return paths;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user