#!/bin/sh
# The browser starts this for the LibreVault helper add-on (native messaging; the browser cannot pass arguments in the manifest).
# The small helper answers at once. LibreVault's own program in relay mode does the same job and is the fallback where the small one is not there.
[ -x /opt/librevault/bin/librevault-browser-relay ] && exec /opt/librevault/bin/librevault-browser-relay --native-host "$@"
exec /opt/librevault/bin/librevault --native-host "$@"
