Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Error when communicating with the native messaging host." unless browser started from terminal. #214

Open
nargetdev opened this issue Feb 8, 2022 · 5 comments
Labels

Comments

@nargetdev
Copy link

For anyone else running into this ..

Everything "just works" if you just open the application from the terminal i.e.
open '/Applications/Brave Browser.app'
.. rather than from the usual cmd+space launcher.

Not sure why, but I was really struggling to resolve before I got that sorted.

@martinhoefling
Copy link
Collaborator

Usually, this means that your shell sets up some additional environment that is not set up when running from a launcher. What platform are you running it on?

@5mutawa
Copy link

5mutawa commented May 1, 2022

I'm having the same issue on Mac OS 12.3.1.

@con-f-use
Copy link

Same on NixOS (Linux).

@con-f-use
Copy link

con-f-use commented May 8, 2023

I think it might be, because I set a custom PASSWORD_STORE_DIR via environment variable and according to firefox debug, it doesn't seem to get that env var. But I'm not sure why.

Edit: I can confirm that, the PASSWORD_STORE_DIR environment variable was somehow not propagated to firefox, so I wrapped the executable to include it.

@wholtz
Copy link

wholtz commented May 9, 2023

I was hitting this on MacOS (13.2.1). I had installed gopass, gopass-jsonapi, and GnuPG via MacPorts. When launching Chrome from the launcher, gpg wasn't ending up in my PATH. I modified ~/.config/gopass/gopass_wrapper.sh to include:

 export PATH="$PATH:/opt/local/bin" # required on MacOS/MacPorts

And that fixed it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants