Here’s some additional background about goals and what I’ve attempted so far. I have a thought I don’t want to get lost so I’m going to put it in a second reply.
It looks like you’re trying to build a really old version of Epiphany. Just use a newer version?
It looks like I was working on the source from an epiphany-3.36.4 tarball. I’ll give the cloned repo a try and see if that resolves the dependency issue.
Epiphany is only going to show search results from your Epiphany history and bookmarks, though, so that doesn’t seem super useful. Surely you would want it to show results from Chrome instead?
Until 30 minutes ago I was unaware that I’m presently getting search results from the dozen or so sites in my Web history (no bookmarks exist) so I was under the assumption that all I would be producing was:
If all you want is to display the “search the web” link and nothing else, then you can use the Epiphany search provider as a starting point, but you can probably delete most of the code, certainly including everything that depends on WebKit.
I don’t know C and making minimal changes to forked code with chatgpt has allowed me to gain functionality out of programs I would never have gotten otherwise. GNOME Web is my lightweight, i-have-to-use-a-browser-x-over-ssh choice, but Chrome’s my daily driver.
What’s happened is that when I hit start and begin typing and strike enter (because that’s what one does with a single result, I end up with Web opening instead of Chrome. I then need to close the opened GNOME Web window.
For starters that’s all I want to change…and it would have satisficed until I realized I might be able to have history and bookmarks from Chrome. I removed one of the links in the search-provider chain, (/usr/share/gnome-shell/search-providers/org.gnome.Epiphany.SearchProvider.ini
) before I realized I can probably just turn it off in Settings > Search:
If you want to display history and bookmark search results comparable to what Epiphany does, you’ll probably want it to be part of the Chromium codebase.
Like I said, I would have ignorantly satisficed on just some web hits and launching my browser of choice and giving other GNOME users an easy way to have an integrated web-search-provider experience agnostic of end browser choice. Further, I like to kid myself that I’m proficient in BASH, but at best I’m puzzling through stuff with an iddiot savant that occasionally follows my instructions. Perhaps this will become a reality when some other necessary conditions are met:
- I learn C, GNOME, etc.
- AI programming gets appreciably better at digesting existing codebase
- Someone who know how to do this decides they want a chrome-search-provider.
Until then, I’ve only the tools at hand so with that metaphorical hammer, I’m hitting this proverbial nail.