Daydreamer-riri / PowerToys-Run-WebSearchShortcut

This is a simple PowerToys Run plugin for quickly select a specific search engine to perform searches.
MIT License
148 stars 9 forks source link

Fails to launch BrowserRouter #29

Open mudnug opened 4 days ago

mudnug commented 4 days ago

Using ?? fails as does the default search in PowerToys. Is it possible to configure how the command is sent to the browser exe?

Notably, "Open" works fine but search doesn't if I am not using this plugin

image

Daydreamer-riri commented 4 days ago

Please provide your configuration file, as well as your powertoys version. And what is your default browser?

mudnug commented 4 days ago

Release v0.86.0 No config / default config

Daydreamer-riri commented 4 days ago

Please refer to https://github.com/Daydreamer-riri/PowerToys-Run-WebSearchShortcut?tab=readme-ov-file#configuration.

I need to replicate your situation before I can help you out.

What exactly do you mean by 'fails'?

mudnug commented 3 days ago

I'm guessing that the plugin uses something underlying in PowerToys? It fails with a message box. This is why I was asking if it's configurable so that I can fix the way it's trying to call the browser. Thanks for being responsive by the way!

image

Daydreamer-riri commented 3 days ago

It could be an upstream problem. What is your default browser? I'm guessing it has something to do with your browser.

mudnug commented 3 days ago

I would suppose it is an upstream problem; How is the call to the browser initiated? I assume the arguments don't have quotes where they are expected or something like that... Notably, "upstream" if I use a URL instead of a search it will open the browser just fine BrowseRouter as shown in the msgbox

Daydreamer-riri commented 3 days ago

I use the same method as WebSearch which is built-in.

mudnug commented 3 days ago

Are you familiar enough with their code for web search that you can point me to where it launches the browser?

mudnug commented 1 day ago

Perhaps one of the devs will help triage it at https://github.com/microsoft/PowerToys/issues/36083

Daydreamer-riri commented 1 day ago

https://github.com/Daydreamer-riri/PowerToys-Run-WebSearchShortcut/blob/main/Community.PowerToys.Run.Plugin.WebSearchShortcut/Main.cs#L569-L592

This is how the plugin opens the browser.