[Bug 245288] When signing the pinentry dialog flickers for a few seconds and then signing fails

Daniel Eklöf daniel at ekloef.se
Sat Nov 26 15:20:14 GMT 2011


https://bugs.kde.org/show_bug.cgi?id=245288


Daniel Eklöf <daniel at ekloef.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel at ekloef.se




--- Comment #6 from Daniel Eklöf <daniel ekloef se>  2011-11-26 15:20:14 ---
I had the same issue. Like others, I too had both gpg and gpg-agent correctly
configured, but still it didn't work. As others have mentioned, pinentry-gtk-2
worked perfectly fine.

After lots of debugging, I found that pinentry-qt4 crashes inside ibus.

In my case, the problem was that GTK_IM_MODULE/QT_IM_MODULE/XMODIFIERS were set
(to ibus) when gpg-agent was launched (by a script in .kde/env). However, at
the time gpg-agent is launched, a full KDE session isn't available. For
example, I don't think the session dbus has been started yet. This apparently
causes problems in ibus.

I worked around the problem by modifying the gpg-agent script in .kde/env to
this:

#!/bin/sh
eval `GTK_IM_MODULE="" QT_IM_MODULE="" XMODIFIERS="" gpg-agent --daemon`

With this, pinentry-qt4 no longer crashes, although it obviously means you
can't use other input methods.

It does look really ugly though, as it's using some kind of default widget
theme. Probably also related to the fact that gpg-agent is launched "too
early".

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list