pinentry-(qt-)0.8.0 will stay in the background when it's called from kmail (in KDE 4.4). Alt-Tab (or equivalent) won't work because it catches all keyboard input, the only way to get it to the foreground is clicking on it in the task bar (or just inoutting the password blindly). Reproducible: Always Steps to Reproduce: 1. Try to open an encrypted email (or send a signed email) with kmail Actual Results: pinentry-qt is in the background, invisible if kmail's window is large enough. Expected Results: pinentry-qt should be in the foreground Actually this is an upstream issue, see also https://bugs.g10code.com/gnupg/issue1162 That bug report has a patch, which maybe should be applied to the ebuild, I could do this maybe during the next days if I find the time.
Created attachment 239243 [details, diff] Patch which fixed the mentioned bug This patch works for me, it should become obsolete with the next pinentry version. It was taken from said upstream bug report.
Created attachment 239245 [details] Ebuild which incorporates this patch.
https://bugs.kde.org/show_bug.cgi?id=236574 <- KDE bug. I've added pinentry bug to the URL. I just added this patch without a revbump to the tree. Thanks for the bug report. I'm leaving the bug open so the maintainer can see it and to address any issue that this may cause. I've tested it here and finally pinentry showed in the foreground when launched from thunderbird.
ok, it show in the foreground now but is it just me or the dialog box doesn't get focus?
It definitely has the input focus, though maybe not the window manager focus. At least for me it's not possible to pass keyboard input events to any other window.
The patch has been included into portage, but for some reason instead of using the name 0.8.0-r1 as suggested in the attachment, it has been integrated in 0.8.0. The result on my part was that, since my system already had compiled 0.8.0, the patch was not applied. The bug is fixed, but if you still have this problem you have to recompile pinentry manually: # emerge -1 pinentry
(In reply to comment #6) > The patch has been included into portage, but for some reason instead of using > the name 0.8.0-r1 as suggested in the attachment, it has been integrated in > 0.8.0. :/ +*pinentry-0.8.0-r1 (25 Sep 2010) + + 25 Sep 2010; Samuli Suominen <ssuominen@gentoo.org> + +pinentry-0.8.0-r1.ebuild: + Revision bump wrt #328189 by Federico Zenith. Fix USE static deps wrt + #331739 by "wd".