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:
Joe Groocock 2017-07-09 00:09:12 +01:00
parent 7281fcdf41
commit 33fb51714d
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86
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

View File

@ -1,9 +1,5 @@
#!/bin/sh
source ~/.profile
source ~/.xsession
xrdb -merge ~/.Xresources
# Run all system xinitrc shell scripts
xinitdir="/etc/X11/xinit/xinitrc.d"
if [ -d "$xinitdir" ]; then
@ -15,4 +11,8 @@ if [ -d "$xinitdir" ]; then
done
fi
source ~/.profile
source ~/.xsession
xrdb -merge ~/.Xresources
exec i3