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

LibreWolf Browser Integration #6907

Closed
CuriousApe2020 opened this issue Sep 10, 2021 · 42 comments
Closed

LibreWolf Browser Integration #6907

CuriousApe2020 opened this issue Sep 10, 2021 · 42 comments

Comments

@CuriousApe2020
Copy link

CuriousApe2020 commented Sep 10, 2021

I request for KeepassXC to integrate with LibreWolf a fork of Firefox, the Firefox Extension "works" but doesn't get recognized by KeepassXC. Currently the workaround on Linux is to link ~/.mozilla/native-messaging-hosts to ~/.librewolf/native-messaging-hosts.

@droidmonkey
Copy link
Member

Use the custom browser configuration.

@Mayurifag
Copy link

Mayurifag commented Nov 7, 2021

Update: skip my answer, use custom browser integration solution from below answers

Thats kinda sad that this won't be fixed. I had my librewolf browser with keepassxc-browser not to be working on linux with keepassxc.

It was spamming message "Key exchange was not successful." everywhere without any meaningful messages.

Only this issue helped me to fastfix it:

ln -s ~/.mozilla/native-messaging-hosts ~/.librewolf/native-messaging-hosts

Thats not a good solution, but I still want keepassxc developers or browser extension devs to fix it for librewolf users.

However, Librewolf and keepassxc browser on windows works fine.

@droidmonkey
Copy link
Member

Use the custom browser option in the advanced settings...

@peepo5
Copy link

peepo5 commented Jan 4, 2022

image
where

@droidmonkey
Copy link
Member

You need version 2.6.6, you are running an ancient version of keepassxc

@peepo5
Copy link

peepo5 commented Jan 4, 2022

ubuntu repos trash like usual?

@droidmonkey
Copy link
Member

https://keepassxc.org/download lots of options

@peepo5
Copy link

peepo5 commented Jan 4, 2022

i think the outdated ubuntu version should be removed

@hockeymikey
Copy link

Use the custom browser option in the advanced settings...

Not a solution if one wants to use multiple custom browsers.

@droidmonkey
Copy link
Member

Use symlinks

@hockeymikey
Copy link

Use symlinks

Or provide more options. It really isn't that difficult.

@droidmonkey
Copy link
Member

I've sent your feedback to upper management for consideration.

@Diapolo10
Copy link

From the looks of it this shouldn't be a difficult fix, it's just an extra profile to the snap helper script.

I was actually setting up a new laptop yesterday and gave Librewolf a go, but went back to Firefox after finding out the browser plugin didn't work natively with it. Which is a shame.

I'd be down to fixing the problem myself if I'm given approval. Should take a couple hours at most.

@droidmonkey
Copy link
Member

I'd consider it for the snap install script... with the caveat that we don't provide any guarantees for alt browsers.

@ghost
Copy link

ghost commented Feb 3, 2022

This is creating a directory in ~/~/native-messaging-hosts where the first tilde is substituted and the second one isn't.
Config Location: ~/.librewolf/native-messaging-hosts

@iriki
Copy link

iriki commented May 24, 2022

Why is everyone stating that it doesn't work? I've ditched Firefox and only use Librewolf, and only had to:

  1. create empty directory ~/.librewolf/native-messaging-hosts
  2. Go to Browser Integration, Advancedand manually fill in the Config Location with the same folder you've created in step 1: ~/.librewolf/native-messaging-hosts

I've also find out that, in order to "remove" the old firefox association, the easiest way for me was to move the keefile to another folder, and opening it again in KeePassXC.

@droidmonkey
Copy link
Member

You shouldn't even have to do step 1!

@iriki
Copy link

iriki commented May 26, 2022

I had to create that empty folder on all my Linux boxes or else it wouldn't work.

@droidmonkey
Copy link
Member

Noted, that would be a bug then, we should create the folder path @varjolintu

@puzzlled
Copy link

I had this same problem, running Manjaro. Tried enabling custom browser but no change until I created the empty folder
~/.librewolf/native-messaging-hosts
and then it worked right away. I've been trying to get this set up on a few Manjaro machines as I'd like to migrate to it and this issue almost had me moving on to a different option. Fortunately I found this page so now perhaps I can stick with it.
It really does seem to be a bug that shouldn't be too difficult to fix and it might be a good idea to accept Librewolf as a standard option instead of custom since people who use it are after the privacy & security it offers, and privacy is what keepassxc is all about.

@varjolintu
Copy link
Member

Didn't we have a pull request for supporting this? It has just disappeared.

@float3
Copy link

float3 commented Nov 24, 2022

@katullo11
Copy link

Why is this closed? Browser extension still doesn't work on LibreWolf.

@varjolintu
Copy link
Member

@katullo11 You can use the Custom Browser feature to enable this.

@katullo11
Copy link

I can't screenshot, but do you mean the one that sets the custom path? If yes, what should I do?

@varjolintu
Copy link
Member

Enable the Custom Browser setting from Browser Integration's Advanced Tab. Keep the browser type as Firefox and add the path to following (depending on your OS of course):
~/.librewolf/native-messaging-hosts

@katullo11
Copy link

Still doesn't work. I'm sorry but I'm not really that advanced, I'm on macOS and I have installed librewolf via Homebrew if that helps in any way.

@varjolintu
Copy link
Member

The path for macOS is probably ~/Library/Application Support/Librewolf/NativeMessagingHosts or similar. Check the correct Librewolf path under ~/Library/Application Support/.

@katullo11
Copy link

It worked! Thanks a lot!

@fliegentoeter
Copy link

Does not work for me unfortunalty...
Running Manjaro and was able to use custom browser settings and even choose ~/.librewolf/native-messaging-hosts
But The Addon in Librewolf is unable to connect...
Seems like i have to stay on Firefox for now.

@float3
Copy link

float3 commented Apr 12, 2023

Does not work for me unfortunalty...
Running Manjaro and was able to use custom browser settings and even choose ~/.librewolf/native-messaging-hosts
But The Addon in Librewolf is unable to connect...
Seems like i have to stay on Firefox for now.

Did you also create that folder?

@fliegentoeter
Copy link

Its there, even a keepassxc file is in there...
Bildschirmfoto vom 2023-04-12 19-15-13

1 similar comment
@fliegentoeter
Copy link

Its there, even a keepassxc file is in there...
Bildschirmfoto vom 2023-04-12 19-15-13

@Stoxis
Copy link

Stoxis commented May 23, 2023

Why is everyone stating that it doesn't work? I've ditched Firefox and only use Librewolf, and only had to:

1. create empty directory `~/.librewolf/native-messaging-hosts`

2. Go to `Browser Integration`, `Advanced`and manually fill in the `Config Location` with the same folder you've created in step 1: `~/.librewolf/native-messaging-hosts`

I've also find out that, in order to "remove" the old firefox association, the easiest way for me was to move the keefile to another folder, and opening it again in KeePassXC.

This solution solved my issue with connecting KeePassXC to Librewolf.

@NikMAX2077
Copy link

NikMAX2077 commented Jun 17, 2023

Why is everyone stating that it doesn't work? I've ditched Firefox and only use Librewolf, and only had to:

1. create empty directory `~/.librewolf/native-messaging-hosts`

2. Go to `Browser Integration`, `Advanced`and manually fill in the `Config Location` with the same folder you've created in step 1: `~/.librewolf/native-messaging-hosts`

I've also find out that, in order to "remove" the old firefox association, the easiest way for me was to move the keefile to another folder, and opening it again in KeePassXC.

This solution solved my issue with connecting KeePassXC to Librewolf.

Still doesn't work for me.
UPD. Maybe beacause keepassxc-proxy not running: segmentation fault (core dumped) keepassxc-proxy
UPD2. It helps after system update and/or reboot

@fazer1
Copy link

fazer1 commented Feb 24, 2024

What can I do, if I am on a windows machine? The keypass json on windows is only in this directory:
C:\Users\user\AppData\Local\KeePassXC
org.keepassxc.keepassxc_browser_firefox.json
org.keepassxc.keepassxc_browser_tor-browser.json

"~/.mozilla/native-messaging-hosts" does not exist

@varjolintu
Copy link
Member

What can I do, if I am on a windows machine? The keypass json on windows is only in this directory: C:\Users\user\AppData\Local\KeePassXC org.keepassxc.keepassxc_browser_firefox.json org.keepassxc.keepassxc_browser_tor-browser.json

"~/.mozilla/native-messaging-hosts" does not exist

Go to the LibreWolf's registry and add a path to that JSON file. You can take a look at how other browser configure it.

@odkr
Copy link

odkr commented Apr 2, 2024

Just a note for those of us on macOS: The correct "config location" is ~/Library/Application Support/librewolf/NativeMessagingHosts.

@vinovod
Copy link

vinovod commented Apr 8, 2024

Just a note for those of us on macOS: The correct "config location" is ~/Library/Application Support/librewolf/NativeMessagingHosts.

Thank you, it has just saved a lot of time :)

@sebadrude
Copy link

Hi,
this does not work any more, it seems. I am on Linux Mint 22 Cinnamon. I followed the instructions:

  1. created ~/.librewolf/native-messaging-hosts/
  2. added that path in Settings > Browser Integration > Advanced > Config Location (Browser Type: Firefox)
  3. moved my database to a different location
  4. rebooted
  5. opened my keepassxc database

When clicking on the keepassxc-browser addon icon in LibreWolf, I still get "KeePassXC-Browser has encountered an error: Cannot connect to KeePassXC. Check that browser integration is enabled in KeePassXC settings. "
What am I missing?

@varjolintu
Copy link
Member

@sebadrude Use the troubleshooting guide to check if the path is correct: https://github.com/keepassxreboot/keepassxc-browser/wiki/Troubleshooting-guide#find-the-native-messaging-configuration-path-with-strace

Also, how is Librewolf installed? Just a normal .deb?

@sebadrude
Copy link

Thanks, dear @varjolintu. After I saw your message, I remember having seen that the FlatPack LibreWolf package that came with Linux Mint 22 can cause this kind of trouble. I tried installing the original Debian distribution instead, and things worked.
Thanks also for pointing me at the helpful Wiki-page!
Greetings from the tropics to the long days far up in the north!

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

No branches or pull requests