1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Fix dbus user-session and gnome-keyring on boot

This commit is contained in:
2017-07-09 00:09:12 +01:00
parent 7281fcdf41
commit 33fb51714d
2 changed files with 9 additions and 9 deletions

View File

@ -22,9 +22,9 @@ if ! [ -z $DISPLAY ] && which autocutsel &>/dev/null; then
autocutsel -selection PRIMARY -fork &
fi
# Start an ssh-agent
if [ -z $SSH_AUTH_SOCK ]; then
eval `ssh-agent`
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
eval $(dbus-launch --sh-syntax --exit-with-session)
dbus-update-activation-environment --systemd DISPLAY
export $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gnupg)
export SSH_AUTH_SOCK
fi
# Always add SSH key to the running agent; local or remote
ssh-add