mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44:23 +01:00
common: Silence warnings from AllowSetForegroundWindow.
* common/sysutils.c (gnupg_allow_set_foregound_window): Print warning only with debug flag set.
This commit is contained in:
parent
b067285d59
commit
4ef8516a79
@ -778,8 +778,12 @@ gnupg_allow_set_foregound_window (pid_t pid)
|
|||||||
else if (inhibit_set_foregound_window)
|
else if (inhibit_set_foregound_window)
|
||||||
;
|
;
|
||||||
else if (!AllowSetForegroundWindow ((pid_t)pid == (pid_t)(-1)?ASFW_ANY:pid))
|
else if (!AllowSetForegroundWindow ((pid_t)pid == (pid_t)(-1)?ASFW_ANY:pid))
|
||||||
log_info ("AllowSetForegroundWindow(%lu) failed: %s\n",
|
{
|
||||||
(unsigned long)pid, w32_strerror (-1));
|
char *flags = getenv ("GNUPG_EXEC_DEBUG_FLAGS");
|
||||||
|
if (flags && (atoi (flags) & 2))
|
||||||
|
log_info ("AllowSetForegroundWindow(%lu) failed: %s\n",
|
||||||
|
(unsigned long)pid, w32_strerror (-1));
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3954,6 +3954,12 @@ Operation is further controlled by a few environment variables:
|
|||||||
under operating systems without proper support to figure out the
|
under operating systems without proper support to figure out the
|
||||||
name of a process' text file.
|
name of a process' text file.
|
||||||
|
|
||||||
|
@item GNUPG_EXEC_DEBUG_FLAGS
|
||||||
|
@efindex GNUPG_EXEC_DEBUG_FLAGS
|
||||||
|
This variable allows to enable diagnostics for process management.
|
||||||
|
A numeric decimal value is expected. Bit 0 enables general
|
||||||
|
diagnostics, bit 1 enables certain warnings on Windows.
|
||||||
|
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
When calling the gpg-agent component @command{@gpgname} sends a set of
|
When calling the gpg-agent component @command{@gpgname} sends a set of
|
||||||
|
Loading…
x
Reference in New Issue
Block a user