diff --git a/.github/actions/spell-check/expect.txt b/.github/actions/spell-check/expect.txt index 1fca6be137..47662c3766 100644 --- a/.github/actions/spell-check/expect.txt +++ b/.github/actions/spell-check/expect.txt @@ -1590,7 +1590,7 @@ SYSKEYUP SYSLIB SYSMENU SYSTEMAPPS -systemsettings +SYSTEMSETTINGS SYSTEMTIME SYSTEMWOW tapp diff --git a/src/modules/Workspaces/WorkspacesLib/AppUtils.cpp b/src/modules/Workspaces/WorkspacesLib/AppUtils.cpp index 7c9bfe332d..389e54eae5 100644 --- a/src/modules/Workspaces/WorkspacesLib/AppUtils.cpp +++ b/src/modules/Workspaces/WorkspacesLib/AppUtils.cpp @@ -26,6 +26,7 @@ namespace Utils constexpr const wchar_t* FileExplorerName = L"File Explorer"; 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* PowerToysSettingsUpper = L"POWERTOYS.SETTINGS.EXE"; constexpr const wchar_t* PowerToysSettings = L"PowerToys.Settings.exe"; @@ -257,6 +258,14 @@ namespace Utils 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; }