FreeBSD Bugzilla – Attachment 157319 Details for
Bug 197307
upgrade to mail/thunderbird 31.4.0_1 broke enigmail?
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
pinentry wrapper script
pinentry.txt (text/plain), 1.79 KB, created by
Eric
on 2015-06-01 02:07:32 UTC
(
hide
)
Description:
pinentry wrapper script
Filename:
MIME Type:
Creator:
Eric
Created:
2015-06-01 02:07:32 UTC
Size:
1.79 KB
patch
obsolete
>#!/bin/sh > ># This script detects it's environment and starts the (hopefully) right ># pinentry executable. It logs to "/var/log/messages" if it can't determine ># the right one. ># ># People can override this wrapper script by specifying their own script ># in "~/.gnupg/gpg-agent.conf", e.g: ># pinentry-program /home/user/bin/my-pinentry ># OR e.g. ># pinentry-program /usr/local/bin/pinentry-curses > ># Author: Eric Krausser > > >PINENTRY_PATH=/usr/local/bin >PINENTRY_GTK=${PINENTRY_PATH}/pinentry-gtk-2 >PINENTRY_QT=${PINENTRY_PATH}/pinentry-qt4 >PINENTRY_TTY=${PINENTRY_PATH}/pinentry-tty >PINENTRY_CURSES=${PINENTRY_PATH}/pinentry-curses > >PINENTRY_HINT= >PINENTRY_EXEC= > > ># check for X11 running >arg= >display= >for opt in "$@"; do > if [ "$opt" = "--display" ]; then > arg=1 > elif [ -n "$arg" ]; then > display="$opt" > else > arg= > fi >done > > ># KDE running >if [ -n "$display" -a "${XDG_CURRENT_DESKTOP}" = "kde" ]; then > # !! This is currently broken, because there is no proper way > # !! to detect that this script is running from KDE. > # !! Variable XDG_CURRENT_DESKTOP will be empty. > PINENTRY_HINT="(X11 / KDE)" > if [ -x "${PINENTRY_QT}" ]; then > PINENTRY_EXEC=${PINENTRY_QT} > elif [ -x "${PINENTRY_GTK}" ]; then > PINENTRY_EXEC=${PINENTRY_GTK} > fi ># Other X11 running >elif [ -n "$display" ]; then > PINENTRY_HINT="(X11 / GTK)" > if [ -x "${PINENTRY_GTK}" ]; then > PINENTRY_EXEC=${PINENTRY_GTK} > elif [ -x "${PINENTRY_QT}" ]; then > PINENTRY_EXEC=${PINENTRY_QT} > fi ># Terminal running >else > PINENTRY_HINT="(Terminal)" > if [ -x "${PINENTRY_CURSES}" ]; then > PINENTRY_EXEC=${PINENTRY_CURSES} > elif [ -x "${PINENTRY_TTY}" ]; then > PINENTRY_EXEC=${PINENTRY_TTY} > fi >fi > > >if [ -n "${PINENTRY_EXEC}" ]; then > exec "${PINENTRY_EXEC}" "$@" >else > logger "$0: can't determine pinentry program ${PINENTRY_HINT}" >fi >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 197307
: 157319