[arch-general] Help with gnupg saving password for given time

FGr frgroccia at gmail.com
Mon Jun 25 04:18:27 EDT 2012

Excerpt from Randy's message
of 2012-06-23T00:02-0400:

> What I ended up doing was per the Arch wiki. Creating the
> file /etc/profile.d/gpg-agent.sh with the following:
> /#!/bin/sh
> envfile="${HOME}/.gnupg/gpg-agent.env"
> if test -f "$envfile" && kill -0 $(grep GPG_AGENT_INFO "$envfile" |
> cut -d: -f 2) 2>/dev/null; then eval "$(cat "$envfile")"
> else
>      eval "$(gpg-agent --daemon --write-env-file "$envfile")"
> fi
> export GPG_AGENT_INFO  # the env file does not contain the export
> statement/
> This did the trick for me.

I applied your trick: it also works on Xfce.

More information about the arch-general mailing list