Skip to content

Commit 4c72d42

Browse files
fix: start gnome-keyring components if the daemon is active
1 parent b2f4277 commit 4c72d42

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

data/start-cosmic

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,12 @@ if [[ -z "${DBUS_SESSION_BUS_ADDRESS}" ]]; then
4848
else
4949
exec /usr/bin/cosmic-session
5050
fi
51+
52+
# Start gnome keyring components if the daemon is active
53+
# -> check if /run/user/$UID/keyring exists
54+
if [ -d "/run/user/$(id -u)/keyring" ]; then
55+
56+
# start pkcs11, secrets, and ssh components
57+
/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh
58+
59+
fi

0 commit comments

Comments
 (0)