Page MenuHome GnuPG

GpgOL: Pinentry prompt not shown for smartcards when signing
Testing, HighPublic

Description

When signing with a Smartcard and the Smartcard is not inserted GpgOL will show the "encrypting ..." overlay and disable the outlook window.

The Pinentry dialog to insert the smartcard is never shown, though. In the GPGME log I can see that pinentry launched. My suspicion is that the AttachThreadInput trick we use to bring pinentry to the foreground, and which now is implemented in qtbase causes pinentry to attach to a disabled outlook and not to our enabled overlay.

I am curious though why this only happens for Smartcards and not with the general password entry field.

Event Timeline

aheinecke created this task.
aheinecke changed the task status from Open to Testing.Aug 12 2022, 2:44 PM
aheinecke removed a project: gpgol.
aheinecke moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.

This works now with the fix in pinentry that uses the same code to bring the smartcard insertion dialog to the front as we use in the password entry dialog.
Before I was able to reproduce the issue, now it works as expected:

Does the progress bar really say "Verschlusseln" (with u instead of ü) or this is a bug in the screen capture tool? In the pinentry dialog there are also two ü that are displayed as u.

Right, I think I never fixed this but someone changed the ü to u in translation to workaround it. That was what https://dev.gnupg.org/T4637 is about. I think I'll reopen this one.