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

Keeweb connection fails on Ubuntu 21.10 #33

Open
johndevs opened this issue Nov 23, 2021 · 4 comments
Open

Keeweb connection fails on Ubuntu 21.10 #33

johndevs opened this issue Nov 23, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@johndevs
Copy link

When trying to enable the plugin for firefox in Ubuntu 21.10 you get this error:

Error:
2021-11-23T18:34:43.468Z [browser-extension-connector] Error installing extension: Error: ENOENT: no such file or directory, unlink '/home/john/.mozilla/native-messaging-hosts/net.antelle.keeweb.keeweb_connect.json'

This is because in Ubuntu 21.10+ Firefox will be installed via Snap instead of via apt (see https://www.omgubuntu.co.uk/2021/09/ubuntu-makes-firefox-snap-default )

When installing via snap the .mozilla folder is no longer located under the $HOME/.mozilla directory but under $HOME/snap/firefox/common/.mozilla. This breaks the plugin.

Workaround:

sudo snap remove firefox
sudo apt install firefox

Using the non-snap version of firefox works, using the snap version does not.

@antelle
Copy link
Member

antelle commented Nov 23, 2021

How do other apps install itself as native hosts with the snap version of Firefox?

@johndevs
Copy link
Author

I don´t think it is possible under flatpak due to sandboxing according to https://bugzilla.mozilla.org/show_bug.cgi?id=1621763 (KeePassXC seems to have the same issue)

@johndevs
Copy link
Author

How KeepassXC worked around the issue for their plugin, maybe the same approach could be taken?

https://discourse.flathub.org/t/how-to-run-firefox-and-keepassxc-in-a-flatpak-and-get-the-keepassxc-browser-add-on-to-work/437?u=rugk

@antelle antelle added the enhancement New feature or request label Dec 5, 2021
@dyc3
Copy link

dyc3 commented Apr 3, 2023

In ubuntu 22.04, it's no longer possible to install firefox without using snap (unless you use mozilla's PPA). apt install firefox will effectively do snap install firefox instead.

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

No branches or pull requests

3 participants