fix: start gnome-keyring components if the daemon is active

This commit is contained in:
Sebastian Jung 2025-08-20 18:03:55 +00:00 committed by GitHub
parent b2f4277122
commit 4c72d42731
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,3 +48,12 @@ if [[ -z "${DBUS_SESSION_BUS_ADDRESS}" ]]; then
else
exec /usr/bin/cosmic-session
fi
# Start gnome keyring components if the daemon is active
# -> check if /run/user/$UID/keyring exists
if [ -d "/run/user/$(id -u)/keyring" ]; then
# start pkcs11, secrets, and ssh components
/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh
fi