browserpass-native icon indicating copy to clipboard operation
browserpass-native copied to clipboard

Microsoft Edge (Linux) - Error: Specified native messaging host not found.

Open rylancates opened this issue 3 years ago • 5 comments

General information

  • Operating system + version: Fedora Workstation 36
  • Browser + version: Microsoft Edge Version 101.0.1210.47 (Official build) (64-bit)
  • Information about the host app:
    • How did you install it? make && sudo make install
    • If installed an official release, put a version ($ browserpass --version):
    • If built from sources, put a commit id ($ git describe --always): 3.0.10
  • Information about the browser extension:
    • How did you install it? Chrome's store
    • Browserpass extension version as reported by your browser: 3.7.2

If you are getting an error immediately after opening popup, have you followed the Configure browsers documentation section?


Exact steps to reproduce the problem

  1. Clone latest release

  2. make && sudo make install

  3. See the error message in the browser extension in Edge

What should happen?

I'd like this extension to work in Edge :)

What happened instead?

I received the error message in the Issue Title

rylancates avatar May 14 '22 18:05 rylancates

Hello, the error you are getting is because it's not enough to just install Browserpass, every browser has to also be specifically configured - however unfortunately we don't have a configuration yet for the Edge 🙂 If you like to try, you can try to find it or reverse engineer it, and submit a PR once you succeed - look at paths in Makefile for other Chromium derivatives, maybe you will just succeed in guessing 😉 If not you can at least feel free to share your findings in this issue, so that other community members can jump in and also try to help.

max-baz avatar May 14 '22 22:05 max-baz

@maximbaz I've managed to get this working with the user command by placing the json file in "$(XDG_CONFIG_HOME)/microsoft-edge/NativeMessagingHosts/$(APP_ID).json.

The system-wide command is a bit less straight forward.

The directory structure for Edge is sufficiently different to the point I'm not so sure how to proceed.

I was looking for a similar directory to /etc/opt/chrome/ for Edge, but Edge doesn't appear to install into that path. The nearest I can find for Edge is /opt/microsoft/msedge/. Then, I took a chance and placed the native-messaging-hosts folder in that directory, but to no effect.

Further:

  • I'm not 100% sure what the policies functionality is or does
  • I don't have a Mac so I can't attest to the Darwin file paths and instructions

I'd be happy to open a PR with modifications that add support for Linux via the hosts-edge-user step, but it would be incomplete support for the browser.

How would you prefer I proceed at this point?

rylancates avatar May 17 '22 21:05 rylancates

PR #122 opened for discussion

rylancates avatar May 18 '22 19:05 rylancates

Thanks for the investigation and for the PR 👍 Will leave the comments there.

I'm not 100% sure what the policies functionality is or does

It auto-installs browser extension, so that a user doesn't have to get it from Web Store. In the browser extension list, such extension would look a bit different, with "Uninstall" button disabled as it's impossible to remove such extension directly from the browser. You could say, abusing a bit a browser feature of enforcing corporate policies in order to improve user experience of getting the extension to work 🙂

max-baz avatar May 18 '22 22:05 max-baz

Thank you for explaining. Fair enough! It's a nice touch for convenience :)

rylancates avatar May 19 '22 01:05 rylancates

This has been merged, closing, thanks!

max-baz avatar Mar 04 '23 10:03 max-baz