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).
This commit is contained in:
ge0rdi
2020-06-06 21:10:03 +02:00
parent 9c119c6e29
commit cc02e38aef
2 changed files with 3 additions and 0 deletions

View File

@@ -518,6 +518,7 @@ static bool RemoveRegistryKeys( bool bPin )
if (bPin) if (bPin)
{ {
RemoveShellExtKey(L"Launcher.ImmersiveApplication"); RemoveShellExtKey(L"Launcher.ImmersiveApplication");
RemoveShellExtKey(L"Launcher.DesktopPackagedApplication");
RemoveShellExtKey(L"Launcher.SystemSettings"); RemoveShellExtKey(L"Launcher.SystemSettings");
} }

View File

@@ -121,6 +121,7 @@ static void AddRegistryKeys( bool bPin )
if (bPin) if (bPin)
{ {
AddShellExt(L"Launcher.ImmersiveApplication", &sa); AddShellExt(L"Launcher.ImmersiveApplication", &sa);
AddShellExt(L"Launcher.DesktopPackagedApplication", &sa);
AddShellExt(L"Launcher.SystemSettings", &sa); AddShellExt(L"Launcher.SystemSettings", &sa);
} }
} }
@@ -154,6 +155,7 @@ static void RemoveRegistryKeys( bool bPin )
if (bPin) if (bPin)
{ {
RemoveShellExt(L"Launcher.ImmersiveApplication"); RemoveShellExt(L"Launcher.ImmersiveApplication");
RemoveShellExt(L"Launcher.DesktopPackagedApplication");
RemoveShellExt(L"Launcher.SystemSettings"); RemoveShellExt(L"Launcher.SystemSettings");
} }
} }