Compare commits

...

1 Commits

Author SHA1 Message Date
Gordon Lam
0ae6ff6e5e Fix RunAsAdmin For CmdPal when PowerToys is running as Admin 2025-05-15 18:07:23 +08:00

View File

@@ -217,7 +217,7 @@ public:
CmdPal::m_enabled.store(true);
std::wstring packageName = L"Microsoft.CommandPalette";
std::wstring launchPath = L"x-cmdpal://background";
std::wstring launchPath = L"explorer.exe x-cmdpal://background";
#ifdef IS_DEV_BRANDING
packageName = L"Microsoft.CommandPalette.Dev";
#endif
@@ -348,4 +348,4 @@ std::atomic<bool> CmdPal::m_launched{ false };
extern "C" __declspec(dllexport) PowertoyModuleIface* __cdecl powertoy_create()
{
return new CmdPal();
}
}