browserpass-native: pmacOS+Chrome] Error: Error: Specified native messaging host not found.

The latest version of Chrome on macOS has resulted in:

Error: Error: Specified native messaging host not found.

errors with the extension.

Has Chrome been changed such that the existing configs don’t work now?

  • macOS: 10.14.3
  • Chrome: 73.0.3683.103
  • browserpass: 3.0.5

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 31 (5 by maintainers)

Most upvoted comments

I’ll just chalk this up to Monday morning brain fog, lack of coffee and being dumb.

I removed all browser pass extensions, uninstalled all browserpass brew references and deleted the old com.github.browserpass.native.json references for Chrome and Firebox.

Re-ran brew install amar1729/formulae/browserpass and most importantly followed directions.

PREFIX='/usr/local/opt/browserpass' make hosts-chrome -f /usr/local/opt/browserpass/lib/browserpass/Makefile

and

PREFIX='/usr/local/opt/browserpass' make hosts-firefox -f /usr/local/opt/browserpass/lib/browserpass/Makefile

Thanks! I think I’m good now.

For macOS users via Homebrew and familiar with the command-line I think you want to do the following:

$ make PREFIX=/usr/local BIN=browserpass-darwin64 configure
$ make PREFIX=/usr/local install

Then:

$ cd /usr/local/lib/browserpass
$ make hosts-chrome-user

Restart Chrome.

GL 😄

It’s a design decision - homebrew maintainers want brew install or brew uninstall to only write to /usr/local/Cellar and whatever prefix it’s installing things into (typically /usr/local). There are no objects provided in the Formula class that allow a write to the $USER’s filepath.

Feel free to move this discussion to my tap’s issue if you have more questions - i don’t want to clutter this repo’s issue with a relatively unrelated discussion.

Yeah ideally all you’d have to do is to run brew install browserpass, then this command does everything by itself, spits out “please additionally run XXX” and you are all set.

cc @Amar1729

P.S. by the way, the suggestion in tap could be a bit simplified and provided as a one-liner for easier copy-paste, i.e. instead of:

$ cd /usr/local/opt/browserpass/lib/browserpass
$ DESTDIR='' PREFIX='/usr/local/opt/browserpass' make hosts-BROWSER-user

I think this should work (DESTDIR is empty by default):

$ make PREFIX='/usr/local/opt/browserpass' hosts-BROWSER-user -f /usr/local/opt/browserpass/lib/browserpass/Makefile

Hey, glad you managed to make it work!

I believe we actually already have exactly these commands in the README 🙂

image

image

Amar’s homebrew formula installs necessary tools like gnu-sed, and also prints how to configure browsers:

image

So in this particular case I don’t think that there’s something new to add to README. Installation and configuring browsers are split on purpose in different sections, so that we can easily link to the necessary part of the documentation.

If you think some of it needs rephrasing, let me know and we will adapt 🙂

@erayd I think the manual install structions for macOS users using Homebrew just needs to be improved a bit. The last time I installed this the process was a bit different (probably slightly more manual) – the convenient Makefile(s) are nice but you also have to remember to install gnu-sed via brew install gnu-sed and use PREFIX=/usr/local everywhere if you don’t care to sudo everything