#!/bin/sh -eu

# Secret storage defaults to gnome-keyring, but can be changed by setting
# the WIRE_PASSWORD_STORE environment variable. For possible options, see:
# https://www.electronjs.org/docs/latest/api/safe-storage#safestoragegetselectedstoragebackend-linux
export NODE_ENV=production
exec electron29 /usr/lib/wire-desktop/app.asar \
  --password-store="${WIRE_PASSWORD_STORE:-"gnome-libsecret"}" "$@"
