summaryrefslogblamecommitdiff
path: root/user/pinentry/pinentry
blob: fd5b1bd8e5bad9bc82e71dc2cc6edda05f5264ef (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
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