Bug 434301 - Inconsistent theme
Summary: Inconsistent theme
Status: RESOLVED NOT A BUG
Alias: None
Product: kleopatra
Classification: Applications
Component: general (show other bugs)
Version: 3.1.12
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Andre Heinecke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-11 21:27 UTC by medin
Modified: 2022-02-10 07:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Inconsistent theme (49.59 KB, image/png)
2021-03-11 21:27 UTC, medin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description medin 2021-03-11 21:27:37 UTC
Created attachment 136596 [details]
Inconsistent theme

Passphrase dialog has white theme while Kleopatra uses dark breeze theme. See attached image.
Comment 1 Ingo Klöcker 2022-02-09 17:53:02 UTC
That's because for security reasons the passphrase dialog is opened by a different application called pinentry. There are many different flavors of pinentry (for Qt, GTK, Gnome, etc.). The pinentry in your screenshot doesn't look like the Qt one. Make sure that you are using pinentry-qt. See `man gpg-agent` for details how to make sure that the correct pinentry is used.
Comment 2 medin 2022-02-09 21:28:00 UTC
(In reply to Ingo Klöcker from comment #1)
> That's because for security reasons the passphrase dialog is opened by a
> different application called pinentry. There are many different flavors of
> pinentry (for Qt, GTK, Gnome, etc.). The pinentry in your screenshot doesn't
> look like the Qt one. Make sure that you are using pinentry-qt. See `man
> gpg-agent` for details how to make sure that the correct pinentry is used.

I didn't change any gpg agent, and the file /usr/bin/pinentry contains :
#!/bin/sh
# user-defined pre-exec hook
test -r "${XDG_CONFIG_HOME:-$HOME/.config}"/pinentry/preexec &&
    . "${XDG_CONFIG_HOME:-$HOME/.config}"/pinentry/preexec
# site-defined pre-exec hook
test -r /etc/pinentry/preexec &&
    . /etc/pinentry/preexec
test -e /usr/lib/libgtk-x11-2.0.so.0 &&
    exec /usr/bin/pinentry-gtk-2 "$@"
exec /usr/bin/pinentry-curses "$@"

And on Kleopatra github page it's stated clearly that : "Pinentry-curses does not work for Kleopatra"
So the real problem is that Kleopatra on Plasma KDE fails to select the correct pinentry to use because the program.
Adding manually "pinentry-program /usr/bin/pinentry-qt" to "gpg-agent.conf" is not user friendly at all.
Comment 3 Ingo Klöcker 2022-02-10 07:59:29 UTC
Well, obviously your distribution prefers the Gtk-variant (/usr/bin/pinentry-gtk-2) of pinentry instead of the Qt-variant. So, please take this bug to your distribution.

That Kleopatra could maybe allow you to change the pinentry variant to use via its configuration dialog is a wish. So feel free to open a separate wish/feature request for this. I will close this bug again because
a) I have told you how to fix the problem on your system,
b) I have told you that you need to talk to your distribution, if you want to have the proper pinentry for your KDE Plasma desktop by default,
c) Kleopatra has no influence on the pinentry provided by your distribution and/or configured for the underlying GnuPG.