mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg,sm: Avoid useless ASFW diagnostic in loopback mode.
* common/sysutils.c (inhibit_set_foregound_window): New var. (gnupg_inhibit_set_foregound_window): New func. (gnupg_allow_set_foregound_window): Use var. * g10/gpg.c (main): Inhibit in loopback mode. * sm/gpgsm.c (main): Ditto. -- Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
2b843be5ac
commit
14aa797bb8
4 changed files with 39 additions and 0 deletions
|
@ -1737,6 +1737,14 @@ main ( int argc, char **argv)
|
|||
if (!cmd && opt.fingerprint && !with_fpr)
|
||||
set_cmd (&cmd, aListKeys);
|
||||
|
||||
/* If no pinentry is expected shunt
|
||||
* gnupg_allow_set_foregound_window to avoid useless error
|
||||
* messages on Windows. */
|
||||
if (opt.pinentry_mode != PINENTRY_MODE_ASK)
|
||||
{
|
||||
gnupg_inhibit_set_foregound_window (1);
|
||||
}
|
||||
|
||||
/* Add default keybox. */
|
||||
if (!nrings && default_keyring)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue