browserpass / browserpass-native

Browserpass native client app
ISC License
394 stars 50 forks source link

Support for Opera Browser #105

Closed Bluesboy closed 3 years ago

Bluesboy commented 3 years ago

General information

Getting "Error: Error: Specified native messaging host not found." in popup and extension settings

erayd commented 3 years ago

This normally means that you have not configured the host app correctly. The documentation for doing so is here, however note that we do not currently have a config target for Opera - you will need to configure it manually for that browser.

How did you go about configuring it?

Bluesboy commented 3 years ago

I just done make install assuming default target will be chromium therefore compatible with Opera, turns out it's not.

maximbaz commented 3 years ago

Yeah sadly browsers like to be unique 😅 If you do figure out proper folders for Opera, a PR adding support would be welcome 😉

Bluesboy commented 3 years ago

@maximbaz Unfortunately I'm new to all this stuff, can you, please, give me some directions where to start?

maximbaz commented 3 years ago

I transferred the issue to the relevant repo. See Makefile in the root of the repo, it contains support for different browsers. You can look at various browsers and you would be able to make some educated guesses where Opera might be storing its config files, or try to search for some Opera documentation.

Ideally, you would need to create 4 new sections by example of the other browsers: hosts-opera, hosts-opera-user, policies-opera, policies-opera-user.

The former two are for configuring the browser (what you are missing in your setup), the latter two help installing the extension (if you place the policy correctly, it will make Browserpass look like "pre-installed" extension, it will look like it cannot be removed, and if it was not there, it would "magically" install it).

It might be easier if you play with those make targets using one of the already supported browsers, e.g. if you dont have Browserpass configured in Chromium, play with chromium targets to see how it works.

And good luck! 🙏

P.S. For other OS, if you dont find any documentation, just make an educated guess - if you will be wrong, some other user will eventually correct this! 😉

Bluesboy commented 3 years ago

@maximbaz Thank you very much! Turned out that for Opera you can use hosts-chrome target, not sure about user policies policies-chromium-user worked for me, not sure, though, maybe it not needed at all.

maximbaz commented 3 years ago

Interesting! OK good that it works, I'll add this to README :)