aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/gnupg/.local/bin/pinentry-auto
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-05-28 15:27:15 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-05-28 15:27:15 -0500
commitdd6cfb63ad85d0164cbe4ac04f7aea9f6a842f02 (patch)
tree5bc45394b9192771bcc85fa59b8aab4b8a4301bb /gnupg/.local/bin/pinentry-auto
parent1527172edf1f7d65095a5c2268947c16ed905d18 (diff)
feat!: remove unused configs and cleanup paths
Diffstat (limited to 'gnupg/.local/bin/pinentry-auto')
-rwxr-xr-xgnupg/.local/bin/pinentry-auto38
1 files changed, 0 insertions, 38 deletions
diff --git a/gnupg/.local/bin/pinentry-auto b/gnupg/.local/bin/pinentry-auto
deleted file mode 100755
index b788361..0000000
--- a/gnupg/.local/bin/pinentry-auto
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-# Choose between pinentry-tty and pinentry-x11 based on whether
-# $PINENTRY_USER_DATA contains USE_TTY=1
-#
-# Based on:
-# https://kevinlocke.name/bits/2019/07/31/prefer-terminal-for-gpg-pinentry
-#
-# Note: Environment detection is difficult.
-# - stdin is Assuan pipe, preventing tty checking
-# - configuration info (e.g. ttyname) is passed via Assuan pipe, preventing
-# parsing or fallback without implementing Assuan protocol.
-# - environment is sanitized by atfork_cb in call-pinentry.c (removing $GPG_TTY)
-#
-# $PINENTRY_USER_DATA is preserved since 2.08 https://dev.gnupg.org/T799
-#
-# Format of $PINENTRY_USER_DATA not specified (that I can find), pinentry-mac
-# assumes comma-separated sequence of NAME=VALUE with no escaping mechanism
-# https://github.com/GPGTools/pinentry-mac/blob/v0.9.4/Source/AppDelegate.m#L78
-# and recognizes USE_CURSES=1 for curses fallback
-# https://github.com/GPGTools/pinentry-mac/pull/2
-#
-# To the extent possible under law, Kevin Locke <kevin@kevinlocke.name> has
-# waived all copyright and related or neighboring rights to this work
-# under the terms of CC0: https://creativecommons.org/publicdomain/zero/1.0/
-
-set -Ceu
-
-# Use pinentry-tty if $PINENTRY_USER_DATA contains USE_TTY=1
-case "${PINENTRY_USER_DATA-}" in
-*USE_TTY=1*)
- # Note: Change to pinentry-curses if a Curses UI is preferred.
- exec pinentry-curses "$@"
- ;;
-esac
-
-# Otherwise, use any X11 UI (configured by Debian Alternatives System)
-# Note: Will fall back to curses if $DISPLAY is not available.
-exec pinentry-gtk-2 "$@"