Skip to content

Commit

Permalink
[Workspaces]Fix application icons on ARM (#35146)
Browse files Browse the repository at this point in the history
fixed app path
  • Loading branch information
SeraphimaZykova authored Sep 30, 2024
1 parent 77de44f commit 28b90d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/Workspaces/WorkspacesLib/AppUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ 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";
constexpr const wchar_t* ApplicationFrameHost = L"APPLICATIONFRAMEHOST.EXE";
constexpr const wchar_t* Exe = L".EXE";
}

AppList IterateAppsFolder()
Expand Down Expand Up @@ -258,8 +258,8 @@ 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))
// Update the install path to keep .exe in the path
if (!installPathUpper.ends_with(NonLocalizable::Exe))
{
auto settingsAppData = appData;
settingsAppData.installPath = appPath;
Expand Down

0 comments on commit 28b90d5

Please sign in to comment.