-
Notifications
You must be signed in to change notification settings - Fork 0
/
60-keyring.sh
29 lines (26 loc) · 1.07 KB
/
60-keyring.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Gnome-keyring-daemon conflicts with gpg-agent & ssh-agent
# Note that Gnome Keyring Daemon no longer exposes GNOME_KEYRING_PID:
# :~ $ gnome-keyring-daemon --start
# SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
# GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1
#
# More info: https://mail.gnome.org/archives/commits-list/2014-March/msg03864.html
### GPG2 Agent
# export GPG_AUTH_SOCK="${HOME}/.gnupg/S.gpg-agent"
# export SSH_AUTH_SOCK="${HOME}/.gnupg/S.gpg-agent.ssh"
### SSH Agent
# export SSH_AUTH_SOCK="${HOME}/.gnupg/S.gpg-agent.ssh"
### Gnome Keyring
# GNOME_KEYRING_C="pkcs11,secrets,ssh,gpg"
# if [ -n "$DESKTOP_SESSION" ]; then
# pgrep -f "gnome-keyring-daemon" > /dev/null
# if [ $? -eq 0 ]; then
# logger -t "$LOGGERNAME" "Found running gnome-keyring-daemon"
# else
# logger -t "$LOGGERNAME" "Starting gnome-keyring-daemon"
# eval $(gnome-keyring-daemon --start --components="${GNOME_KEYRING_C}")
# export GNOME_KEYRING_PID="$(pgrep -f gnome-keyring-daemon)"
# export SSH_AUTH_SOCK
# export GPG_AUTH_SOCK
# fi
# fi