-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Access KeePassXC installed as a snap or a Flatpak package #5
Comments
Some additional information:Test, if KeePassXC is installed via Flatpak or not:
Installed or not:
Test, if KeePassXC is installed via snap or not:
Once installed:
If KeePassXC is installed side-by-side via snap and natively,
|
It has to be considered, that KeePassXC recently changed the handling of the socket file, introduced by KeePassXC release 2.7.2 (see Release notes for KeePassXC 2.7.2, keepassxreboot/keepassxc#8030 and keepassxreboot/keepassxc#8634). Unfortunately, KeePassXC misses to delete the socket file, when KeePassXC exists, as this is required for AF_UNIX sockets. The symlink stays on the filesystem too. This can be illustrated very nicely with the example of Cryptomator. As of today, keepassxc-proxy-access does work with the following combinations:
[1] fails due to cryptomator/cryptomator#2540
|
Starting with release 1.2.0 keepassxc-proxy-access connects to KeePassXC installed as a snap or a Flatpak package too. As Cryptomator shows the usage of keepassxc-proxy-access very well, it is chosen as a reference again:
[1] fails due to cryptomator/cryptomator#2540
[2] AFAIK there is no way to access the snap sandbox from within a flatpak sandbox |
Please agree to the following
Summary
Today, keepassxc-proxy-access cannot access KeePassXC's proxy, as Flatpak and snap use different
$XDG_RUNTIME_DIR
sMotivation
KeePassXC can be installed as a snap package and is also available as a Flatpak package.
Both variants use a different
$XDG_RUNTIME_DIR
, due to the nature of sandboxed applications.As keepassxc-proxy-access looks up a general Linux
$XDG_RUNTIME_DIR
at start-up, this needs to be adjusted to work for snap and Flatpak too.keepassxc-proxy-access/src/main/java/org/keepassxc/LinuxMacConnection.java
Lines 100 to 112 in 7a8f6ed
Considered Alternatives
No response
Anything else?
KeePassXC installed as Flatpak package:
https://github.com/flathub/org.keepassxc.KeePassXC/blob/83d18532ed41779b1cc0c2861807f3a632bd807a/patch/keepassxc/0003-Flatpak-Support-KeePassXC-Browser-integration.patch#L9-L10
KeePassXC installed as snap package:
https://github.com/keepassxreboot/keepassxc/blob/develop/snap/snapcraft.yaml
Hints on how snap handles the
$XDG_RUNTIME_DIR
:https://forum.snapcraft.io/t/rethinking-how-we-handle-xdg-runtime-dir/22223/3
The text was updated successfully, but these errors were encountered: