Bug 233764

Summary: pinentry window in thunderbird do not come to front
Product: [Applications] kleopatra Reporter: jürgen <juergli38>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: daniel, emanuel, husimon, mutz
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Attachments: Fix focus window issue in pinentry-qt4

Description jürgen 2010-04-08 20:14:48 UTC
Version:           2.0.14-svn1098530 (2010-03-03) (using 4.1.4, compiled sources)
Compiler:          i586-mingw32msvc-gcc
OS:                Microsoft Windows (i686) release 5.1 (XP Professional)

When i click on a encrypted mail in thunderbird, thunderbird is hanging. When i exit thunderbird then i become the pinentry window for typing the passphrase. Then i can type it and at the next start of thunderbird the encrypted mail is decrypted.
Comment 1 husimon 2011-08-22 22:13:27 UTC
I can confirm this. As long as I use only KMail or Thunderbird without installing kleopatra, I can avoid problems by editing the gpg-agent.conf file and replace the prog "/usr/bin/pinentry-qt4" with "/usr/bin/pinentry-gtk-2" instead of pinentry-qt4. This work-around is available and described by others. However, as soon as I install kleopatra, the gpg-gent is "hard-coded" (?) to be pinentry-qt4. Apparantly, pinentry-qt4 is causing a lot of problems, because the Passphrase entry screen appears in a backgrounded window (can't be brought to "focus"!). The passphrase pop-up is shown for less than a second and the user has no chance to enter the passphrase. Immediately after the sequence, a pop-up tells user that his PASSPHRASE is incorrect! No wonder, since the passphrase field remains empty!! This breaks the whole GnuPG setup.

Distr: Kubuntu 11.04
Comment 2 Daniel Eklöf 2011-11-26 15:23:40 UTC
Created attachment 66093 [details]
Fix focus window issue in pinentry-qt4

For a workaround for pinentry-qt4 disappearing before you can enter a passphrase, see comment #6 in bug 245288.

For the other issue, with pinentry-qt4 not being focused correctly, the attached patch worked for me.
Comment 3 Emanuel Schütze 2013-05-08 13:55:53 UTC
Should be fixed with pinentry-qt4 in current Gpg4win release.