Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 328189 - pinentry-qt stays in background when called from kmail
Summary: pinentry-qt stays in background when called from kmail
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Sven Wegener
URL: https://bugs.g10code.com/gnupg/issue1162
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-13 23:46 UTC by quazgar
Modified: 2010-09-25 09:20 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch which fixed the mentioned bug (pinentry-0.8.0-qt-fix.patch,1.08 KB, patch)
2010-07-18 12:10 UTC, quazgar
Details | Diff
Ebuild which incorporates this patch. (pinentry-0.8.0-r1.ebuild,2.86 KB, text/plain)
2010-07-18 12:10 UTC, quazgar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description quazgar 2010-07-13 23:46:10 UTC
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.
Comment 1 quazgar 2010-07-18 12:10:03 UTC
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.
Comment 2 quazgar 2010-07-18 12:10:35 UTC
Created attachment 239245 [details]
Ebuild which incorporates this patch.
Comment 3 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2010-07-18 22:23:00 UTC
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.
Comment 4 frank 2010-07-20 15:50:05 UTC
ok, it show in the foreground now but is it just me or the dialog box doesn't get focus?
Comment 5 quazgar 2010-07-20 21:52:24 UTC
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.
Comment 6 Federico Zenith 2010-08-26 08:25:00 UTC
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
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2010-09-25 09:20:43 UTC
(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".