I have 2 questions but I will give a context first: I only installed the GnuPG and Kleopatra components, which comes with only pinentry-basic.exe.
Which component installs pinentry-qt.exe? Why can’t the users select which pinentry GUI to use, regardless of the components selected?
The reason why I want qt version is actually because I don’t need to click the input box with my mouse first. The dialog is automatically focused when being launched. Can I do something similar with the basic version?
I guess it should come in all installs except the minimal one and maybe available as pinentry.exe. But I haven’t tried.
Why can’t the users select which pinentry GUI to use, regardless of the components selected?
Too many top level options would get increasingly harder to handle both for the users and for the installation system. Ideally only the default pinentry is enough. If you really need a different one, install them all and use the pinentry option of the configuration file gpg-agent.conf to change which one is used.
The dialog is automatically focused when being launched. Can I do something similar with the basic version?
Probably not. (Again I did not check in detail, but it makes sense as it is the basic version.)
pinentry-qt is installed as pinentry.exe if you have installed the Kleopatra component it should be installed to C:\Program Files (x86)\Gpg4win\bin, where all Kleopatra executables reside. And it is the one Kleopatra uses by default. Therefore I’ve never seen the basic version.
Hi. I’ve installed Gpg4win v4.4.1 on 2 PCs. Both PCs have the GnuPG and Kleopatra components checked. However, the pinentry dialog appears to be different: https://imgur.com/a/w97xDk3
In the second PC, my gpg-agent.conf only has a single line: default-cache-ttl 21600
pinentry.exe exists and pinentry-program is not set.
However, I just tried explicitly specifying pinentry-program D:\Gpg\bin\pinentry.exe and it uses the Qt version. But once I remove this line it reverts to the dialog shown in the second screenshot.
When running the Gpg4win-installer, I had the installation path set as D:\Gpg.
It seems like if I don’t have the option set, the default pinentry becomes D:\GnuPG\bin\pinentry-basic.exe instead
Did you have a previous version of Gpg4win installed on one of the PCs?
(Obviously, there must be a difference between them. And this is causing the different behaviour, the the question is: Which one? )
An old installation is a potential reason for a different pinentry being present. If it isn’t too much of a hassle for you, configure the pinentry you want on the system that is different and it should be okay.
For new systems keep an eye on it. And if you can reproduce it (on a test system or so) please let us know, so we can go and hunt the issue.