jjw24 / Wox.Plugin.Runner

A plugin that allows you to create simple command shortcuts in Wox.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Making program links (.lnk) valid paths

HugoLowegren opened this issue · comments

This might be a bug on my end but if that is not the case then this might as well be a feature request. I'm wondering if it would be possible to add support for .lnk as a "Path". Mostly just because of the convenience of not having to change things around if the path of a program changes etc.

If the feature requests gets denied it could otherwise be wise to change the error log output for invalid files, as launching an .lnk currently outputs this:

Exception

Flow Launcher version: 1.7.0
OS Version: Microsoft Windows NT 10.0.18363.0
IntPtr Length: 8
x64: True

Python Path: pythonw.exe
Date: 02/13/2021 11:33:58
Exception:
System.ComponentModel.Win32Exception (193): The specified executable is not a valid application for this OS platform.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at Wox.Plugin.Runner.Runner.RunCommand(ActionContext e, IEnumerable`1 terms, Command command) in C:\Workbench\Git\delete\Wox.Plugin.Runner\Wox.Plugin.Runner\Runner.cs:line 69
at Wox.Plugin.Runner.Runner.<>c__DisplayClass3_1.b__2(ActionContext e) in C:\Workbench\Git\delete\Wox.Plugin.Runner\Wox.Plugin.Runner\Runner.cs:line 49
at Flow.Launcher.ViewModel.MainViewModel.b__20_7(Object index) in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 176
at Flow.Launcher.MainWindow.OnPreviewMouseButtonDown(Object sender, MouseButtonEventArgs e) in C:\projects\flow-launcher\Flow.Launcher\MainWindow.xaml.cs:line 229
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.ContentElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
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)

Thanks either way :)