Commit ea71d015 authored by intrigeri's avatar intrigeri
Browse files

Ensure pinentry-gtk2 run by Seahorse has the correct $DISPLAY set (refs: #12733).

As discussed in more details on, there's a bug
somewhere in the Seahorse → gnupg-agent → pinentry-gtk2 communication, that
leads to pinentry-gtk2 being invoked with the $DISPLAY environment variable
being unset. Strangely, this does not happen for gpg → gnupg-agent →
pinentry-gtk2. Now that upstream is aware of the problem, let's apply
a temporary workaround to Tails until the root cause is fixed.
parent a707d3bb
......@@ -7,3 +7,17 @@ echo "Selecting our preferred pinentry"
for alternative in pinentry pinentry-x11 ; do
update-alternatives --set "$alternative" /usr/bin/pinentry-gtk-2
# XXX:Buster remove once Debian bug #869416 is fixed
mkdir -p /usr/lib/pinentry
dpkg-divert --add --rename --divert \
/usr/lib/pinentry/pinentry-gtk-2 \
cat > /usr/bin/pinentry-gtk-2 << 'EOF'
. /usr/local/lib/tails-shell-library/
exec /usr/lib/pinentry/pinentry-gtk-2 "$@"
chmod 755 /usr/bin/pinentry-gtk-2
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment