File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -42,18 +42,20 @@ if command -v systemctl >/dev/null; then
42
42
# set environment variables for new units started by user service manager
43
43
systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP DCONF_PROFILE
44
44
fi
45
- # Run cosmic-session
46
- if [[ -z " ${DBUS_SESSION_BUS_ADDRESS} " ]]; then
47
- exec /usr/bin/dbus-run-session -- /usr/bin/cosmic-session
48
- else
49
- exec /usr/bin/cosmic-session
50
- fi
51
45
52
46
# Start gnome keyring components if the daemon is active
53
47
# -> check if /run/user/$UID/keyring exists
54
48
if [ -d " /run/user/$( id -u) /keyring" ]; then
55
49
56
50
# start pkcs11, secrets, and ssh components
57
51
/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh
52
+ export SSH_AUTH_SOCK=" /run/user/$( id -u) /keyring/ssh"
58
53
59
54
fi
55
+
56
+ # Run cosmic-session
57
+ if [[ -z " ${DBUS_SESSION_BUS_ADDRESS} " ]]; then
58
+ exec /usr/bin/dbus-run-session -- /usr/bin/cosmic-session
59
+ else
60
+ exec /usr/bin/cosmic-session
61
+ fi
You can’t perform that action at this time.
0 commit comments