Open DinMon opened 4 months ago
@DinMon Thanks! Solved my problem.
Thank you for reporting this issue. I will look into it, and in the meantime, I should note this in the documentation.
No worries. I also forget to mention that for the official Web Search of PowerToys a 'Direct activation command' needs to be set up and probably should not conflict with the one of PowerToys Run WebSearchShortcut.
On my computer I can disable web search and use the web search shortcut just fine. I'll try to find a computer that can reproduce the issue.
To replicate the issue where the PowerToys Run WebSearchShortcut crashes when the official Web Search is enabled, follow these steps:
You can choose one of the following methods:
Ctrl + Shift + Esc
.PowerToys.Runner
.PowerToys.Runner
and select End Task.PowerToys.Runner
process is no longer listed in the Task Manager.Sorry closing it was a mistake.
2024-07-23.txt Still crashes if I disable Web Search (after restarting Powertoys of course). Crash log may shed some light on the issue.
PowerToys-Run-WebSearchShortcut seems to be an extension of the official Web Search of PowerToys. Therefore, if you to do have Web Search on, WebSearchShortcut will crash with the below stack trace.
Version: 0.82.1.0 OS Version: Microsoft Windows NT 10.0.22621.0 IntPtr Length: 8 x64: True Date: 22/07/2024 1:51:07 PM Exception: System.InvalidOperationException: Cannot start process because a file name has not been provided. at System.Diagnostics.Process.Start() at Wox.Infrastructure.Helper.OpenInShell(String path, String arguments, String workingDir, ShellRunAsType runAs, Boolean runWithHiddenWindow) at Wox.Infrastructure.Helper.OpenCommandInShell(String path, String pattern, String arguments, String workingDir, ShellRunAsType runAs, Boolean runWithHiddenWindow) at Community.PowerToys.Run.Plugin.WebSearchShortcut.Main.OpenInBrowser(String url) at Community.PowerToys.Run.Plugin.WebSearchShortcut.Main.<>cDisplayClass43_0.b_0(ActionContext )
at PowerLauncher.ViewModel.MainViewModel.<>c DisplayClass31_0.b0()
at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
at System.Windows.Threading.Dispatcher.Invoke(Action callback)
at PowerLauncher.ViewModel.MainViewModel.OpenResultsEvent(Object index, Boolean isMouseClick)
at PowerLauncher.ViewModel.MainViewModel.b 32_10(Object index)
at PowerLauncher.ViewModel.RelayCommand.Execute(Object parameter)
at System.Windows.Input.CommandManager.TranslateInput(IInputElement targetElement, InputEventArgs inputEventArgs)
at System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
To resolve the issue make sure official PowerToys Web Search is enabled.