mirror of
https://github.com/microsoft/PowerToys
synced 2025-08-30 05:57:42 +00:00
[Workspaces]Fix snapshot tool: update capturing windows settings app (#35140)
* [Workspaces] fix snapshot tool: update capturing windows settings app * spell checker * spell checker * minor change in app utils, when the system settings app is captured
This commit is contained in:
parent
6bab73777b
commit
d527d9576d
2
.github/actions/spell-check/expect.txt
vendored
2
.github/actions/spell-check/expect.txt
vendored
@ -1590,7 +1590,7 @@ SYSKEYUP
|
|||||||
SYSLIB
|
SYSLIB
|
||||||
SYSMENU
|
SYSMENU
|
||||||
SYSTEMAPPS
|
SYSTEMAPPS
|
||||||
systemsettings
|
SYSTEMSETTINGS
|
||||||
SYSTEMTIME
|
SYSTEMTIME
|
||||||
SYSTEMWOW
|
SYSTEMWOW
|
||||||
tapp
|
tapp
|
||||||
|
@ -26,6 +26,7 @@ namespace Utils
|
|||||||
|
|
||||||
constexpr const wchar_t* FileExplorerName = L"File Explorer";
|
constexpr const wchar_t* FileExplorerName = L"File Explorer";
|
||||||
constexpr const wchar_t* FileExplorerPath = L"C:\\WINDOWS\\EXPLORER.EXE";
|
constexpr const wchar_t* FileExplorerPath = L"C:\\WINDOWS\\EXPLORER.EXE";
|
||||||
|
constexpr const wchar_t* SystemSettingsPath = L"SYSTEMSETTINGS.EXE";
|
||||||
constexpr const wchar_t* PowerToys = L"PowerToys.exe";
|
constexpr const wchar_t* PowerToys = L"PowerToys.exe";
|
||||||
constexpr const wchar_t* PowerToysSettingsUpper = L"POWERTOYS.SETTINGS.EXE";
|
constexpr const wchar_t* PowerToysSettingsUpper = L"POWERTOYS.SETTINGS.EXE";
|
||||||
constexpr const wchar_t* PowerToysSettings = L"PowerToys.Settings.exe";
|
constexpr const wchar_t* PowerToysSettings = L"PowerToys.Settings.exe";
|
||||||
@ -257,6 +258,14 @@ namespace Utils
|
|||||||
|
|
||||||
if (appPathUpper.contains(installPathUpper))
|
if (appPathUpper.contains(installPathUpper))
|
||||||
{
|
{
|
||||||
|
// check if the found app is the System Settings. If yes, update the install path to the exe path
|
||||||
|
if (appPathUpper.ends_with(NonLocalizable::SystemSettingsPath))
|
||||||
|
{
|
||||||
|
auto settingsAppData = appData;
|
||||||
|
settingsAppData.installPath = appPath;
|
||||||
|
return settingsAppData;
|
||||||
|
}
|
||||||
|
|
||||||
return appData;
|
return appData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user