From cc02e38aefc4d5fe3bb543fcd355f806fbfdd5bb Mon Sep 17 00:00:00 2001 From: ge0rdi Date: Sat, 6 Jun 2020 21:10:03 +0200 Subject: [PATCH] StartMenuHelper: Add shell extension to desktop packaged applications This will allow `Pin to start` for desktop applications downloaded from Microsoft Store (such as Windows Terminal). --- Src/Setup/Utility/ManualUninstall.cpp | 1 + Src/StartMenu/StartMenuHelper/StartMenuHelper.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Src/Setup/Utility/ManualUninstall.cpp b/Src/Setup/Utility/ManualUninstall.cpp index a08a7bd..6c0b0ad 100644 --- a/Src/Setup/Utility/ManualUninstall.cpp +++ b/Src/Setup/Utility/ManualUninstall.cpp @@ -518,6 +518,7 @@ static bool RemoveRegistryKeys( bool bPin ) if (bPin) { RemoveShellExtKey(L"Launcher.ImmersiveApplication"); + RemoveShellExtKey(L"Launcher.DesktopPackagedApplication"); RemoveShellExtKey(L"Launcher.SystemSettings"); } diff --git a/Src/StartMenu/StartMenuHelper/StartMenuHelper.cpp b/Src/StartMenu/StartMenuHelper/StartMenuHelper.cpp index 7be7c2f..d54ce36 100644 --- a/Src/StartMenu/StartMenuHelper/StartMenuHelper.cpp +++ b/Src/StartMenu/StartMenuHelper/StartMenuHelper.cpp @@ -121,6 +121,7 @@ static void AddRegistryKeys( bool bPin ) if (bPin) { AddShellExt(L"Launcher.ImmersiveApplication", &sa); + AddShellExt(L"Launcher.DesktopPackagedApplication", &sa); AddShellExt(L"Launcher.SystemSettings", &sa); } } @@ -154,6 +155,7 @@ static void RemoveRegistryKeys( bool bPin ) if (bPin) { RemoveShellExt(L"Launcher.ImmersiveApplication"); + RemoveShellExt(L"Launcher.DesktopPackagedApplication"); RemoveShellExt(L"Launcher.SystemSettings"); } }