From 56e1b9fe0883aaf94f3b4b1e2620b6b2d6534979 Mon Sep 17 00:00:00 2001 From: Raul Metsma Date: Wed, 29 Apr 2026 12:24:54 +0300 Subject: [PATCH] Link new paths to pkcs11-register https://bugzilla.mozilla.org/show_bug.cgi?id=259356 https://issues.chromium.org/issues/40666379 https://issues.chromium.org/issues/41424903 IB-8835 Signed-off-by: Raul Metsma --- install-open-eid.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install-open-eid.sh b/install-open-eid.sh index 221910c..0a41be9 100755 --- a/install-open-eid.sh +++ b/install-open-eid.sh @@ -211,6 +211,14 @@ esac add_key make_install open-eid +# Browsers may store config in XDG locations unknown to pkcs11-register; create symlinks so it can find them +if [ -d "$HOME/.local/share/pki" ] && [ ! -e "$HOME/.pki" ]; then + ln -s "$HOME/.local/share/pki" "$HOME/.pki" +fi +if [ -d "$HOME/.config/mozilla" ] && [ ! -e "$HOME/.mozilla" ]; then + ln -s "$HOME/.config/mozilla" "$HOME/.mozilla" +fi + # Configure Chrome/Firefox PKCS11 driver for current user, /etc/xdg/autstart/ will init other users on next logon /usr/bin/pkcs11-register --skip-chrome=off --skip-firefox=off echo