this post was submitted on 31 Mar 2024
27 points (90.9% liked)

Linux

48044 readers
785 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Hi all,

I was wondering whether anyone uses KeePassXC with the Firefox browser add-on on Zorin OS. I can't get the browser add-on to recognize the app. I spent a better part of yesterday trying to figure out a solution but just can't seem to get it to work. Any help?

top 23 comments
sorted by: hot top controversial new old
[–] [email protected] 8 points 7 months ago (4 children)
[–] [email protected] 6 points 7 months ago (1 children)

The issue is not KeePassXC flatpak, but both Firefox and KeepassXC flatpak.

I use KeepassXC flatpak and native Firefox and works flawlessly.

[–] [email protected] 3 points 7 months ago* (last edited 7 months ago) (1 children)

In my opinion, the web browser is the single most important application that should be sandboxed on a system. We use them to access nearly everything on the Internet, including resources that are routinely laden with obfuscated JavaScript.

Every attempt should be made to separate the browser from the host system, and circumventing that safeguard in order to facilitate direct access to your password database is risky at best.

Edit: I don't mean to suggest that I have the perfect solution either, but I keep everything sandboxed and just opt for KeePassXC's native global hotkey for auto-filling credentials.

[–] [email protected] 2 points 7 months ago (1 children)

I never tested, but I think you can do either way: Firefox native and KeePassXC flatpak; or Firefox flatpak and KeePassXC native

What cannot happen is both flatpak, cause they won't work together...

Well, if you test the other way around, tell us, cause I can only tell with KeePassXC flatpak and Firefox native

[–] [email protected] 2 points 7 months ago

Ended up trying that, but it didn't work. "Key exchange unsuccessful", it said. Ended up installing both FF and KPXC over apt and it's working like a charm.

[–] [email protected] 6 points 7 months ago (1 children)

I DID IT!!! I DID IT!!! I INSTALLED FIREFOX FROM SOURCE (TAR.BZ2) AND RUN KPXC FROM THE APPIMAGE!!! LET'S GOOO!

[–] [email protected] 1 points 7 months ago (1 children)

As long as you don't run Gentoo or any other distro that require you to compile your own packages, you can install the Firefox from repos and you'll have the same result.

I really suggest you to use yours distro package manager to install Firefox and use KeePassXC as flatpak, cause this way you'll have your apps updated.

Your solution, despite works, you'll have to update the packages by hand

However be aware that Ubuntu force you to install Firefox Snap even if you run apt install firefox, so you'll face the same issue. For this reason I suggest you to move away from Ubuntu

[–] [email protected] 1 points 7 months ago (1 children)

What do you mean by installing FF using my distro's package manager? Zorin doesn't have their own.

[–] [email protected] 2 points 7 months ago

Zorin is Ubuntu based. It's apt, tho

But you probably have to install the ppa first.

Just follow the Mozilla steps:

https://support.mozilla.org/en-US/kb/install-firefox-linux#w_install-firefox-deb-package-for-debian-based-distributions

[–] [email protected] 0 points 7 months ago (1 children)

This is the solution that I followed mostly, but I didn't manage to make it work. I think the XDG-something is different for me. I'm new to Linux so I couldn't figure out what I was doing wrong following this solution :/ Might have to read up on sockets and the terminology used a bit more...

[–] [email protected] 2 points 7 months ago (1 children)

This solution is outdated and complex.

I suggest you to have your Firefox as a native installation and you can keep KeepassXC as flatpak.

It may work out of the box

[–] [email protected] 1 points 7 months ago (1 children)

Does "native installation" mean installed from source or as it came with the OS?

[–] [email protected] 0 points 7 months ago

Do you think it would help if I installed KPXC another way so it's not "sandboxed"?

[–] [email protected] 7 points 7 months ago (2 children)

I'm using Librewolf (a Firefox fork) and have the same issue.

Just check Firefox messaging folder exists in your home

 ls -l ~/.mozilla/native-messaging-hosts

In my case, I needed to create a symlink to make it work with my browser

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

Maybe you could apply a similar workaround. Hope this helps

[–] [email protected] 3 points 7 months ago

Usually this is the main reason and I had to do the same for librewolf. And if I am not mistaken if you are hardening FF you need to make sure you are not blocking native messaging capabilities, IIRC flatpaks might also have similar “issues”.

[–] [email protected] 2 points 7 months ago

Yup, already checked and a file exists connecting them.

[–] [email protected] 1 points 7 months ago* (last edited 7 months ago) (1 children)

Have you activated the browser integration in KeepassXC ?

[–] [email protected] 3 points 7 months ago
[–] [email protected] -2 points 7 months ago (1 children)

I don't use Zorin OS, but did you install the Firefox add-on?

[–] [email protected] 0 points 7 months ago (1 children)

Yes, of course I did. How would it otherwise be telling me that it can't connect to the KPXC app?

[–] [email protected] 1 points 7 months ago (1 children)

That's a pretty shitty response to somebody trying to help you.

[–] [email protected] 1 points 7 months ago

Sorry if I offended you. Just thought it was obvious from the post.