Garulf / Browser-History

Search your Web Browser history
6 stars 6 forks source link

Automatically switch the query browser to chrome #19

Open sephony opened 8 months ago

sephony commented 8 months ago

error

i only have Edge on my computer, so i change the default browser to Edge, but when I click on the query result option with the mouse, the browser is switched to Chrome and an error is reported. image

image

information about error

Flow Launcher version: 1.16.2 OS Version: 19045.3803 IntPtr Length: 8 x64: True

Python Path: D:\anaconda3\pythonw.exe Node Path: D:\nvm\v20.10.0\node.exe Date: 12/13/2023 15:23:27 Exception: Browser History Exception: Websites: https://github.com/Garulf/browser-history Author: Garulf Version: 0.4.0 Flow.Launcher.Core.ExternalPlugins.FlowPluginException: Exception ignored in: <function Base.del at 0x000002231BD63EC0> Traceback (most recent call last): File "D:\Scoop\apps\Flow-Launcher\current\app-1.16.2\UserData\Plugins\Browser History-0.4.0\plugin\browsers.py", line 39, in del os.remove(self.temp_path) PermissionError: [WinError 32] ��һ����������ʹ�ô��ļ��������޷����ʡ�: 'C:\Users\User\AppData\Local\Temp\History'

---> System.IO.InvalidDataException: Exception ignored in: <function Base.del at 0x000002231BD63EC0> Traceback (most recent call last): File "D:\Scoop\apps\Flow-Launcher\current\app-1.16.2\UserData\Plugins\Browser History-0.4.0\plugin\browsers.py", line 39, in del os.remove(self.temp_path) PermissionError: [WinError 32] ��һ����������ʹ�ô��ļ��������޷����ʡ�: 'C:\Users\User\AppData\Local\Temp\History'

at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 297 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 297 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 313 at Flow.Launcher.Core.Plugin.PluginManager.<>cDisplayClass22_0.<b0>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 194 --- End of stack trace from previous location --- at Flow.Launcher.Infrastructure.Stopwatch.DebugAsync(String message, Func`1 action) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Stopwatch.cs:line 40 at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 216 --- End of inner exception stack trace --- at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 216 at Flow.Launcher.ViewModel.MainViewModel.<>cDisplayClass139_0.<gQueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 849 --- End of stack trace from previous location --- at Flow.Launcher.ViewModel.MainViewModel.QueryResults(Boolean isReQuery) in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 850 at System.Threading.Tasks.Task.<>c.b__128_0(Object state) 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)

z1nc0r3 commented 7 months ago

Do you have Ransomware Protection turned on or any permission issues with the FL? What is the default browser that you have set on FL settings?

image

Garulf commented 7 months ago

Flow Launcher has changed how it's setting are saved a this plugin does not handle the new way yet.

sephony commented 7 months ago

Do you have Ransomware Protection turned on or any permission issues with the FL? What is the default browser that you have set on FL settings?

image

the FL default browser option i choose is "default" and system default browser is Edge, maybe it's the problem with FL