Use GPG agent for SSH also

This commit is contained in:
2019-04-16 20:10:47 +02:00
parent 795dfc152d
commit f4641c4604
6 changed files with 3 additions and 18 deletions

View File

@@ -45,14 +45,6 @@ export ACPI_LID_NAME=LID
umask 0022
# Start the gpg-agent if not already running
if ! pgrep -x --uid "${USER}" gpg-agent >/dev/null 2>&1; then
eval $(gpg-agent --daemon --sh)
fi
# because gpg-agent is somehow broken for ssh, use the usual ssh-agent
eval $(ssh-agent -s)
# exec startx breaks some logind fuckery, without exec it works
if [[ -z $DISPLAY ]] ; then
if (( $XDG_VTNR == 1 )) ; then