Outils pour utilisateurs

Outils du site


Panneau latéral

linux:keepass (lu 2994 fois)

KeePass

Article intéressant notemment sur l’intégration de KeePass avec un navigateur quand les 2 applis sont installés via FlatPak

https://wikilibriste.fr/tutoriels/keepass

Pour Google Chrome

flatpak override --user --filesystem={/var/lib,xdg-data}/flatpak/{app/org.keepassxc.KeePassXC,runtime/org.kde.Platform}:ro --filesystem=xdg-run/app/org.keepassxc.KeePassXC:create com.google.Chrome
cat << 'EOF' > ~/.var/app/com.google.Chrome/config/google-chrome/Default/keepassxc-proxy-wrapper.sh
#!/bin/bash
APP_REF="org.keepassxc.KeePassXC/current"

for inst in "$HOME/.local/share/flatpak" "/var/lib/flatpak"; do
    if [ -d "$inst/app/$APP_REF" ]; then
        FLATPAK_INST="$inst"
        break
    fi
done
[ -z "$FLATPAK_INST" ] && exit 1

APP_PATH="$FLATPAK_INST/app/$APP_REF/active"

RUNTIME_REF=$(awk -F'=' '$1=="runtime" { print $2 }' < "$APP_PATH/metadata") RUNTIME_PATH="$FLATPAK_INST/runtime/$RUNTIME_REF/active"

exec flatpak-spawn --env=LD_LIBRARY_PATH=/app/lib --app-path="$APP_PATH/files" --usr-path="$RUNTIME_PATH/files" -- keepassxc-proxy "$@"
EOF
chmod +x ~/.var/app/com.google.Chrome/config/google-chrome/Default/keepassxc-proxy-wrapper.sh
cp ~/.config/google-chrome/NativeMessagingHosts/org.keepassxc.keepassxc_browser.json ~/.var/app/com.google.Chrome/config/google-chrome/NativeMessagingHosts
vi ~/.var/app/com.google.Chrome/config/google-chrome/NativeMessagingHosts/org.keepassxc.keepassxc_browser.json
{
    "allowed_origins": [
        "chrome-extension://pdffhmdngciaglkoonimfcmckehcpafo/",
        "chrome-extension://oboonakemofpalcgghocfoadofidjkkk/"
    ],
    "description": "KeePassXC integration with native messaging support",
    "name": "org.keepassxc.keepassxc_browser",
    "path": "/var/lib/flatpak/exports/bin/org.keepassxc.KeePassXC",
    "type": "stdio"
}
{
    "allowed_origins": [
        "chrome-extension://pdffhmdngciaglkoonimfcmckehcpafo/",
        "chrome-extension://oboonakemofpalcgghocfoadofidjkkk/"
    ],
    "description": "KeePassXC integration with native messaging support",
    "name": "org.keepassxc.keepassxc_browser",
    "path": "/home/user/.var/app/com.google.Chrome/config/google-chrome/Default/keepassxc-proxy-wrapper.sh",
    "type": "stdio"
}
linux/keepass.txt · Dernière modification: 20-03-2025 11:14 de edmc73