Bug 334477

Summary: pinentry-qt4 uses wrong style (motif)
Product: [Applications] kmail2 Reporter: Daniel Boff <dan.boff>
Component: cryptoAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: cfeck
Priority: NOR    
Version: 4.13.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Daniel Boff 2014-05-07 18:12:52 UTC
Hi!

I just set up encryption within kmail and it works like a charm. However, I think the pinentry dialog doesn't behave as I should:

1. I use the oxygen style in my workspace, but the dialog appears to be in motif style ( see screenshot on http://tinypic.com/view.php?pic=ve5hs3&s=8#.U2p3KnVfP0o )

2. The dialog grabs my keyboard, whenever it is opened I can only use the keyboard for this dialog.


Reproducible: Always

Steps to Reproduce:
1. Setup encryption in kmail
2. Send a email
3. The dialog opens, but not in the same style as the rest of my desktop
Comment 1 Daniel Boff 2014-05-07 19:11:04 UTC
Nevermind, I tried a lot of different stuff before writing this bugreport. I checked the source code of pinentry and found out that it probably isn't related to this application or kmail.

So, I thought it just might be a library / symlink problem with my distribution and found that oxygen.so was present in /usr/lib/kde4/plugins/styles but not in /usr/lib/qt4/plugins/styles
After copying the library the style of pinentry-qt4 is correct - I'll file a bugreport in the archlinux bugtracker
Comment 2 Christoph Feck 2014-05-08 20:56:29 UTC
The issue probably is that pinentry runs as a different user (root?) for which no KDE session has been started. Then KDE's plugins are not added to the Qt paths.
Comment 3 Daniel Boff 2014-05-09 10:29:42 UTC
Yes, I also think so, but probably pinentry is not executed with root, because I dont have too enter my root password nor my sudo password at any point. Could this issue fixed in kmail after all and is not distribution specific?