gTerminal-project / Browser-Extension

http://gterminal.js.org/
GNU General Public License v3.0
0 stars 0 forks source link

Chrome search not set automatically #11

Open J0J0HA opened 1 year ago

J0J0HA commented 1 year ago

Expected Behavior

gTerminal is set as default search and added to search providers automatically when installed.

Behavior

Nothing of the two happens.

Additional Context

Chrome Browser, extension verision 1.0 and onward

J0J0HA commented 1 year ago

This issue cannot be fixed for now, because:

J0J0HA commented 1 year ago

I also looked into the chrome.omnibox API which would allow to register a custom search engine with even the ability to recommend Search requests aka autocomplete commands when used in search bar. But it has two major downsides:

  1. The search can only be opened in a new tab, never in the same tab you used the searchbar in.
  2. It requires a background script. This is something I try to avoid, because the config to implement it is different in gecko based browsers (FireFox primarialy) and in chromium based browsers (Chrome, Edge, etc...). So there would be different manifest.json depending on the browser.