diff options
-rw-r--r-- | _zlogin | 3 | ||||
-rw-r--r-- | _zsh/80-gpg.zsh | 7 |
2 files changed, 7 insertions, 3 deletions
@@ -14,8 +14,7 @@ ## Start `gpg-agent' on login (non-SSH connections) GPG_AGENT_SOCKET="${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent" if [[ -z ${SSH_CONNECTION} ]] && [[ ! -S "${GPG_AGENT_SOCKET}" ]]; then - gpg-agent --daemon --enable-ssh-support \ - --pinentry-program ${HOME}/bin/pinentry >/dev/null 2>&1 + restart-gpg-agent fi ## Auto start X if login on tty6 diff --git a/_zsh/80-gpg.zsh b/_zsh/80-gpg.zsh index c0314d4..ef1f153 100644 --- a/_zsh/80-gpg.zsh +++ b/_zsh/80-gpg.zsh @@ -2,7 +2,12 @@ # zsh/gpg.zsh # -# NOTE: `gpg-agent' is configured to be launched in `~/.profile'. +# NOTE: +# ZSH is configured to launch `gpg-agent' on login, so it may be necessary +# to disable its launch by systemd, e.g., +# $ systemctl --global --user mask --now \ +# gpg-agent.service gpg-agent.socket gpg-agent-ssh.socket \ +# gpg-agent-extra.socket gpg-agent-browser.socket # This `GPG_TTY' variable should be set to the correct TTY where the shell # is running. See `gpg-agent(1)' for more details. |