#!/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