diff options
Diffstat (limited to 'sm/gpgsm.c')
-rw-r--r-- | sm/gpgsm.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c index 2cd3b0c4f..2f4470ec0 100644 --- a/sm/gpgsm.c +++ b/sm/gpgsm.c @@ -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) { |