aboutsummaryrefslogtreecommitdiffstats
path: root/bin/gpg2-x11
blob: db0d53f74a3f974ff2d9c5536bd662794488fe87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
#
# `gpg2` shim to support force use the graphical pinentry.
# See also: `~/bin/pinentry-app'
#
# Credit: http://blog.mrloop.com/workflow/2017/02/09/pin-entry.html
#
# Aaron LI
# 2018-01-13
#


GPG2=$(which gpg2)
CFG=${XDG_RUNTIME_DIR}/pinentry-app
echo "x11" > ${CFG}
exec ${GPG2} "$@"

# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=sh: #