Skip to content
This repository was archived by the owner on May 27, 2019. It is now read-only.

Add Brave as an install target #295

Closed
wants to merge 3 commits into from
Closed

Add Brave as an install target #295

wants to merge 3 commits into from

Conversation

mithodin
Copy link

The beta version of brave supports chrome extensions now. Therefore, the install script should support brave. This will need to be updated once extension support gets a stable release.
See issue #294.

@maximbaz
Copy link
Member

Thanks a lot @mithodin! We are targeting to release a next major version of browserpass some time soon, which is a complete rewrite and lives in its own repo. I am not planning to make any releases of browserpass from this repo anymore, but I'll make sure to add Brave to the installation script when I get to it :D

Your PR will not be forgotten! But please do update me when a stable Brave gets released.

install.sh Outdated
else
TARGET_DIR_CHROME="$HOME/.config/google-chrome/NativeMessagingHosts"
TARGET_DIR_CHROMIUM="$HOME/.config/chromium/NativeMessagingHosts"
TARGET_DIR_FIREFOX="$HOME/.mozilla/native-messaging-hosts"
TARGET_DIR_VIVALDI="$HOME/.config/vivaldi/NativeMessagingHosts"
TARGET_DIR_BRAVE="$HOME/.config/BraveSoftware/Brave-Browser-Beta/NativeMessagingHosts"
Copy link
Member

@maximbaz maximbaz Oct 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please also find out locations for Darwin? I assume OpenBSD and FreeBSD will use the same path as Linux.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem. I have updated the script accordingly.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks man! I'll make sure to ping you when I get to merging this in v3.

@t56k
Copy link

t56k commented Dec 18, 2018

@maximbaz A stable Brave version is now out, but moving the Chromium native messaging host JSON to the Brave folder results in forbidden warnings:

Error: Access to the specified native messaging host is forbidden.

Any way forward before the rewrite?

@maximbaz
Copy link
Member

This sounds like you placed json in a wrong folder, or your json contains an invalid path to browserpass executable.

@mithodin have you managed to succeed with stable Brave?

@mithodin
Copy link
Author

Works for me with
TARGET_DIR_BRAVE="$HOME/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts"
and the current stable release of brave (0.57.18). One could possibly detect which version of brave is installed and change the path accordingly. Otherwise, I would suggest to change the path so that it works for the stable release as people who use the beta/dev releases should be able to figure things out on their own.

@ewoutp
Copy link

ewoutp commented Dec 24, 2018

I've tried this PR on MacOS and while I'm convinced that the directories are correct, I still get Error: Specified native messaging host not found..

I'm using Version 0.58.18 Chromium: 71.0.3578.98 (Official Build) (64-bit)

@michaelmcandrew
Copy link

Just to say, this worked for me on Debian Stretch with Brave installed via https://brave-browser.readthedocs.io/en/latest/installing-brave.html#linux.

I followed the standard instructions but replacing the ./install.sh from the latest release package with the one referenced in this PR.

I tried to add a comment to the following post but couldn't reply due to permissions, I guess: https://community.brave.com/t/browserpass-browser-extension-for-pass-a-unix-password-manager/28931

Thanks for the PR 👍

@chrisswanda
Copy link

If using Brave Browser, be sure to:

cp /etc/chromium/native-messaging-hosts/com.dannyvankooten.browserpass.json ~/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts/

This will remove the Native Messaging Hosts error when trying to install. Or this is how I did it.

@maximbaz
Copy link
Member

I have included this in Browserpass v3, thanks again for the PR, if you can test now, please share your feedback in #331

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

Successfully merging this pull request may close these issues.

6 participants