diff --git a/src/settings-ui/Settings.UI/SettingsXAML/Views/CmdNotFoundPage.xaml b/src/settings-ui/Settings.UI/SettingsXAML/Views/CmdNotFoundPage.xaml index 43f064ce7d39..2832874f7be8 100644 --- a/src/settings-ui/Settings.UI/SettingsXAML/Views/CmdNotFoundPage.xaml +++ b/src/settings-ui/Settings.UI/SettingsXAML/Views/CmdNotFoundPage.xaml @@ -17,7 +17,10 @@ TrueValue="Collapsed" /> - + - - - - - - - - - + + + + + + + + + + + + - + @@ -104,7 +115,7 @@ - + diff --git a/src/settings-ui/Settings.UI/Strings/en-us/Resources.resw b/src/settings-ui/Settings.UI/Strings/en-us/Resources.resw index 73314466091f..25fc9390fc49 100644 --- a/src/settings-ui/Settings.UI/Strings/en-us/Resources.resw +++ b/src/settings-ui/Settings.UI/Strings/en-us/Resources.resw @@ -3677,16 +3677,16 @@ Activate by holding the key for the character you want to add an accent to, then Command Not Found "Command Not Found" is a product name - + Installed - + Detected - + Not detected - + The following components are required @@ -3695,11 +3695,11 @@ Activate by holding the key for the character you want to add an accent to, then WinGet Client PowerShell module - + Command Not Found "Command Not Found" is a product name - + Add this module to the PowerShell 7 profile script so that it is enabled with every new session @@ -3708,16 +3708,16 @@ Activate by holding the key for the character you want to add an accent to, then PowerShell 7 is required to use this module - + Refresh - + Check if your PowerShell configuration is compatible and configured correctly - + Install - + Uninstall @@ -3998,4 +3998,7 @@ Activate by holding the key for the character you want to add an accent to, then Text size of result titles - \ No newline at end of file + + Command Not Found is not supported on the ARM64 architecture currently. We are actively working on a solution. + + diff --git a/src/settings-ui/Settings.UI/ViewModels/CmdNotFoundViewModel.cs b/src/settings-ui/Settings.UI/ViewModels/CmdNotFoundViewModel.cs index 712194b453e3..85b5c3bf2e54 100644 --- a/src/settings-ui/Settings.UI/ViewModels/CmdNotFoundViewModel.cs +++ b/src/settings-ui/Settings.UI/ViewModels/CmdNotFoundViewModel.cs @@ -6,6 +6,7 @@ using System.Diagnostics; using System.IO; using System.Reflection; +using System.Runtime.InteropServices; using global::PowerToys.GPOWrapper; using ManagedCommon; using Microsoft.PowerToys.Settings.UI.Library.Helpers; @@ -123,6 +124,11 @@ public bool IsEnabledGpoConfigured get => _enabledStateIsGPOConfigured; } + public bool IsArm64Arch + { + get => RuntimeInformation.OSArchitecture == System.Runtime.InteropServices.Architecture.Arm64; + } + public string RunPowerShellScript(string powershellExecutable, string powershellArguments, bool hidePowerShellWindow = false) { string outputLog = string.Empty;