When gpg-agent (package newpg) asks pinentry-qt for the passphrase of a gpgkey, for example when using cryptplug with kmail, it fails either on start of pinentry-qt, or on the third letter when entering the phrase. Reproducible: Always Steps to Reproduce: Possibility 1 (general use): 1. be sure to have pinentry-qt (not -gtk) in ~/.gnupg/gpg-agent.conf, gpg-agent running and available for kmail 2. open encrypted pgp/mime message in kmail using cryptplug 3. if window appears try to enter passphrase Possibility 2 (debug): 1. run `gpg-agent --server --pinentry-program /usr/bin/pinentry-qt --debug-all --verbose` (or specify these options in gpg-agent.conf) 2. enter passphrase query like GET_PASSPHRASE 0A0362A27C73C736C398B22E5DCD494CF357DB02 X X You+need+a+passphrase+to+unlock+the+secret+key+for+user:%0A"Benjamin+Greiner+<Benjamin.Greiner@gmx.de>"%0A1024-bit+ELG-E+key,+ID+F357DB02,+created+2002-07-16+(main+key+ID+9CC0B479)%0A Actual Results: A: Get error message about invalid password / can't decrypt email B: Get error output (see attachment) Expected Results: accepting passphrase and decrypting mail Current workaround is to use pinentry-gtk instead of pinentry-qt used package versions: qt-3.3.0-r1 pinentry-0.6.9 newpg-0.9.4-r1 ben@ben ~ $ emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r3) ================================================================= System uname: 2.4.22-gentoo-r3 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo ftp://sunsite.informatik.rwth-aachen. de/pub/Linux/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aalib alsa apm arts avi berkdb cdr crypt cups directfb dvd encode esd foomaticdb gdbm gif gphoto2 gpm gtk gtk2 imlib irda java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd tetex truetype x86 xml2 xmms xv zlib"
Created attachment 26948 [details] stderr of `gpg-agent --server --debug-all --pinentry-program /usr/bin/pinentry-qt` and passphrase query
It appears to be a problem with KDE gui styles. From what i have been able to test, pinentry-qt works with QTs base style but not with some of KDEs own.
Created attachment 27798 [details] List of QT/KDE GUI styles that (don't) work with pinentry-qt
Appears to be a KDE issue. Reassigning.
Is this still happening with pinentry-0.7.x?
No reply from reporter.
Sorry for not replying. Indeed it does work with current version. Thanks.