summaryrefslogtreecommitdiff
path: root/user/pinentry/pinentry
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-14 02:35:56 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-14 02:36:14 -0500
commit802b48187a42d3a54dcbc3f8ec2fae7152def059 (patch)
treebc7fc61c0b6b5894e519d6841076f8370c0ba275 /user/pinentry/pinentry
parent217fa2e1fff31221e835568769a57bc278753ae2 (diff)
downloadpackages-802b48187a42d3a54dcbc3f8ec2fae7152def059.tar.gz
packages-802b48187a42d3a54dcbc3f8ec2fae7152def059.tar.bz2
packages-802b48187a42d3a54dcbc3f8ec2fae7152def059.tar.xz
packages-802b48187a42d3a54dcbc3f8ec2fae7152def059.zip
user/pinentry: pull in, take, fix up, write custom pinentry
Diffstat (limited to 'user/pinentry/pinentry')
-rw-r--r--user/pinentry/pinentry12
1 files changed, 12 insertions, 0 deletions
diff --git a/user/pinentry/pinentry b/user/pinentry/pinentry
new file mode 100644
index 000000000..fd5b1bd8e
--- /dev/null
+++ b/user/pinentry/pinentry
@@ -0,0 +1,12 @@
+#!/bin/sh
+# This file is free software.
+# It is licensed under LGPL-2.1+ OR NCSA (the Adélie Linux license).
+
+# Determine if X11 is running for the current user.
+if [ -n $DISPLAY ]; then
+ [ -f /usr/bin/pinentry-qt ] && exec /usr/bin/pinentry-qt
+ [ -f /usr/bin/pinentry-gtk-2 ] && exec /usr/bin/pinentry-gtk-2
+fi
+
+# Ok, either no X11, or no Qt5/Gtk frontend.
+exec /usr/bin/pinentry-curses