�&ǐk�@'bJ�h�ۊL'}T� :��'2�Z#$��n�a��� �>a��`��_3d�Qpt�/�P -��#5�,�M��� �pA:©�q�����NW��ډ�A���� �9nʺج���� �TSM��{J6?7��r�@�\����D��� �׶���s�f�TJj?"��D��`?��̒� b�#�%�C*v�$�{�$����5Ծ�F�s��y�e/8��h-�f�̰&(����Gj�L:U� 2�� ����v�_k����Y��gp,�k�WF�R������_C�R��N@���R�@�ߔ?A�w9���F("iNa-S���Q�o�3tDMLh*�#4k�T/iQ��Y*�G��m����)��8�hBm/�I�,g�ﯖ���Z��}�Cz�q@´��d.����L�ŕ�,��1�Z�܌�: ̪���F+J-'��c�tvJ8��]Q-��b��y �6;*J`r_�d ��'�G ~p��)'�C,�%F��E(��2�k�����lР�z�!�=t ��_�0��f7��� ;�p�|�U �% 2006 # Pavel Nemec 2006 # Rex Dieter 2009 # Pavol Rusnak 2009 # Boris Ranto 2014 # # use proper binary (pinentry-qt, pinentry-gnome, pinentry-gtk-2 or pinentry-curses) kde_running= arg= display= # look for a --display option for opt in "$@"; do if [ "$opt" = "--display" ]; then arg=1 elif [ -n "$arg" ]; then display="$opt" else arg= fi done # export DISPLAY if pinentry is meant to be run on a different display # check the KDE_FULL_SESSION variable otherwise if [ -n "$display" -a "$DISPLAY" != "$display" ]; then export DISPLAY="$display" elif [ -n "$KDE_FULL_SESSION" ]; then kde_running=1 kde_ver="$KDE_SESSION_VERSION" fi # Check for presence of xprop binary type xprop >/dev/null 2>/dev/null XPROP=$? if [ -n "$DISPLAY" -a $XPROP -eq 0 ]; then xprop -root | grep "^KDE_FULL_SESSION" >/dev/null 2>/dev/null if test $? -eq 0; then kde_running=1 kde_ver="`xprop -root | sed -n 's/KDE_SESSION_VERSION(CARDINAL) = //p'`" 2>/dev/null fi fi # if a user supplied a pinentry binary, use it if [ -n "$PINENTRY_BINARY" ]; then export PINENTRY_BINARY="$PINENTRY_BINARY" # if KDE is detected and pinentry-qt exists, use pinentry-qt elif [ -n "$kde_running" -a -x /usr/bin/pinentry-qt ] then export PINENTRY_BINARY="/usr/bin/pinentry-qt" # otherwise test if pinentry-gnome3 is installed elif [ -n "$DISPLAY" -a -x /usr/bin/pinentry-gnome3 ] then export PINENTRY_BINARY="/usr/bin/pinentry-gnome3" # otherwise test if pinentry-gtk-2 is installed elif [ -n "$DISPLAY" -a -x /usr/bin/pinentry-gtk-2 ] then export PINENTRY_BINARY="/usr/bin/pinentry-gtk-2" # otherwise test if pinentry-qt exists although KDE is not detected elif [ -n "$DISPLAY" -a -x /usr/bin/pinentry-qt ] then export PINENTRY_BINARY="/usr/bin/pinentry-qt" # pinentry-curses is installed by default else export PINENTRY_BINARY="/usr/bin/pinentry-curses" fi exec $PINENTRY_BINARY "$@"