Skip to content

Instantly share code, notes, and snippets.

@ofhouse
Last active December 7, 2019 15:05
Show Gist options
  • Save ofhouse/41cafa26263ec0323d45774894a90632 to your computer and use it in GitHub Desktop.
Save ofhouse/41cafa26263ec0323d45774894a90632 to your computer and use it in GitHub Desktop.
KeepassXC Browser NativeMessagingHosts

Missing org.keepassxc.keepassxc_browser.json on Ubuntu

After installing the KeepassXC Browser extension in Google Chrome, it failed to connect to the KeepassXC Application. Checking the ~/.config/google-chrome/NativeMessagingHosts/org.keepassxc.keepassxc_browser.json file as described in the Troubleshooting guide I noticed that the file is missing. So simple create this file and paste the content from the org.keepassxc.keepassxc_browser.json file from this gist and restart the browser to make it work again.

KeepassXC from snap store

When using KeepassXC from the snap store, it usually does not create the keepassxc-proxy binary, because it's keepassxc.proxy here. To fix this, create the file keepassxc-proxy in /usr/bin/keepassxc-proxy with the following content:

#!/bin/sh

snap run keepassxc.proxy
{
"allowed_origins": [
"chrome-extension://iopaggbpplllidnfmcghoonnokmjoicf/",
"chrome-extension://oboonakemofpalcgghocfoadofidjkkk/"
],
"description": "KeePassXC integration with native messaging support",
"name": "org.keepassxc.keepassxc_browser",
"path": "/usr/bin/keepassxc-proxy",
"type": "stdio"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment