#!/bin/sh # Starts the app with a way to keep the session that a Snap can use. # # Serverpod keeps the session with libsecret, whose usual way, the desktop's # keyring over D-Bus, needs the password-manager-service plug, which the Snap # Store never connects by itself. So unless someone connected it by hand, # libsecret keeps an encrypted file in the Snap's own folder, whose key comes # from the desktop's Secret portal. if ! snapctl is-connected password-manager-service; then export SECRET_BACKEND=file fi exec "$@"