mrclksr / linux-browser-installer

Script to install Linux browsers under a Linux chroot on FreeBSD
175 stars 25 forks source link

KeepassXC Proxy. #33

Open rigoletto-freebsd opened 1 year ago

rigoletto-freebsd commented 1 year ago

Hello!

Do you have any idea on how to make the host KeepassXC proxy be properly available inside the chroot?

I have not yet had a proper look on it but I suppose the symlink facilities could be modified to that; however I don't know if the necessary socket file is available when the chroot is kicked.

Cheers!

nivit commented 1 year ago

Hi, I use the Linux version of keepassxc (installed with the apt command inside the chroot) and then modified the proper file in the config directory of the browser. For example, for Vivaldi the content of the file ~/.config/vivaldi/NativeMessagingHosts/org.keepassxc.keepassxc_browser.json looks like

{
    "allowed_origins": [
        "chrome-extension://pdffhmdngciaglkoonimfcmckehcpafo/",
        "chrome-extension://oboonakemofpalcgghocfoadofidjkkk/"
    ],
    "description": "KeePassXC integration with native messaging support",
    "name": "org.keepassxc.keepassxc_browser",
    "path": "/compat/ubuntu/usr/bin/keepassxc-proxy",
    "type": "stdio"
}

I have also mounted my home directory on /compat/ubuntu/home with nullfs.