[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:
Laszlo Nemeth
2024-09-30 15:37:21 +02:00
committed by GitHub
parent 6bab73777b
commit d527d9576d
2 changed files with 10 additions and 1 deletions

View File

@@ -1590,7 +1590,7 @@ SYSKEYUP
SYSLIB SYSLIB
SYSMENU SYSMENU
SYSTEMAPPS SYSTEMAPPS
systemsettings SYSTEMSETTINGS
SYSTEMTIME SYSTEMTIME
SYSTEMWOW SYSTEMWOW
tapp tapp

View File

@@ -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;
} }