Skip to content

Commit

Permalink
profiles: keepassxc: add new socket location
Browse files Browse the repository at this point in the history
The KeePassXC browser extension looks for the KeePassXC socket at
`${RUNUSER}/app/org.keepassxc.KeePassXC`[1].

But `${RUNUSER}/app` seems to be blacklisted in disable-common.inc under the
flatpak section[2], so the KeePassXC extension cannot connect to it.

Fixes #5447.

[1] https://github.com/keepassxreboot/keepassxc/blob/6b1ab1a5edd66ac10706a2fb5af34ec9458a901d/src/browser/BrowserShared.cpp#L41
[2] https://github.com/netblue30/firejail/blob/b89ec818926b4bcd3a58bb4e2a67b68a8090ba1c/etc/inc/disable-common.inc#L667
  • Loading branch information
qdii authored and kmk3 committed Jul 7, 2024
1 parent b89ec81 commit e71c00e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions etc/profile-a-l/cachy-browser.profile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ whitelist /usr/share/cachy-browser

# To enable KeePassXC Plugin add one of the following lines to your cachy-browser.local.
# Note: Start KeePassXC before CachyBrowser and keep it open to allow communication between them.
#noblacklist ${RUNUSER}/app
#whitelist ${RUNUSER}/app/org.keepassxc.KeePassXC
#whitelist ${RUNUSER}/kpxc_server
#whitelist ${RUNUSER}/org.keepassxc.KeePassXC.BrowserServer

Expand Down
2 changes: 2 additions & 0 deletions etc/profile-a-l/firefox.profile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ whitelist ${HOME}/.mozilla

# Add one of the following whitelist options to your firefox.local to enable KeePassXC Plugin support.
# Note: Start KeePassXC before Firefox and keep it open to allow communication between them.
#noblacklist ${RUNUSER}/app
#whitelist ${RUNUSER}/app/org.keepassxc.KeePassXC
#whitelist ${RUNUSER}/kpxc_server
#whitelist ${RUNUSER}/org.keepassxc.KeePassXC.BrowserServer

Expand Down
2 changes: 2 additions & 0 deletions etc/profile-a-l/floorp.profile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ whitelist ${HOME}/.floorp

# To enable KeePassXC Plugin add one of the following lines to your floorp.local.
# Note: Start KeePassXC before floorp and keep it open to allow communication between them.
#noblacklist ${RUNUSER}/app
#whitelist ${RUNUSER}/app/org.keepassxc.KeePassXC
#whitelist ${RUNUSER}/kpxc_server
#whitelist ${RUNUSER}/org.keepassxc.KeePassXC.BrowserServer

Expand Down
4 changes: 4 additions & 0 deletions etc/profile-a-l/keepassxc.profile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ noblacklist ${HOME}/.config/keepassxc
noblacklist ${HOME}/.config/KeePassXCrc
noblacklist ${HOME}/.keepassxc
noblacklist ${DOCUMENTS}
noblacklist ${RUNUSER}/app

# Allow browser profiles, required for browser integration.
noblacklist ${HOME}/.config/BraveSoftware
Expand Down Expand Up @@ -62,8 +63,11 @@ include disable-xdg.inc
#whitelist ${HOME}/.config/KeePassXCrc
#include whitelist-common.inc

mkdir ${RUNUSER}/app/org.keepassxc.KeePassXC
whitelist ${RUNUSER}/app/org.keepassxc.KeePassXC
whitelist /usr/share/keepassxc
include whitelist-run-common.inc
include whitelist-runuser-common.inc
include whitelist-usr-share-common.inc
include whitelist-var-common.inc

Expand Down
2 changes: 2 additions & 0 deletions etc/profile-a-l/librewolf.profile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ whitelist ${HOME}/.librewolf

# To enable KeePassXC Plugin add one of the following lines to your librewolf.local.
# Note: Start KeePassXC before Librewolf and keep it open to allow communication between them.
#noblacklist ${RUNUSER}/app
#whitelist ${RUNUSER}/app/org.keepassxc.KeePassXC
#whitelist ${RUNUSER}/kpxc_server
#whitelist ${RUNUSER}/org.keepassxc.KeePassXC.BrowserServer

Expand Down

0 comments on commit e71c00e

Please sign in to comment.