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:
parent
7281fcdf41
commit
33fb51714d
10
.profile
10
.profile
@ -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
|
||||
|
8
.xinitrc
8
.xinitrc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user