From 7a472525169a151d49adda7bcc6d8269dfca7ec6 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 12 Feb 2025 11:15:21 +0100 Subject: agent: New option --change-std-env-name. * common/session-env.c (stdenvnames): Add field "disabled". (INITIAL_ARRAYSIZE): Increase size a bit. (session_env_mod_stdenvnames): New. (session_env_list_stdenvnames): Handle the disabled flag. * agent/gpg-agent.c (oChangeStdEnvName): New. (opts): Add --change-std-env-name. (main): Implement option. -- GnuPG-bug-id: 7522 --- doc/gpg-agent.texi | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc') diff --git a/doc/gpg-agent.texi b/doc/gpg-agent.texi index 42ac84019..f207ceef4 100644 --- a/doc/gpg-agent.texi +++ b/doc/gpg-agent.texi @@ -588,6 +588,16 @@ Ignore requests to change the current @code{tty} or X window system's @code{DISPLAY} variable respectively. This is useful to lock the pinentry to pop up at the @code{tty} or display you started the agent. +@item --change-std-env-name -@var{name} +@opindex change-std-env-name +The agent uses a fixed list of environment variables which are passed +on to the Pinentry. This option allows to remove variables from that +list. For example: +@smallexample + change-std-env-name -DBUS_SESSION_BUS_ADDRESS +@end smallexample + + @item --listen-backlog @var{n} @opindex listen-backlog Set the size of the queue for pending connections. The default is 64. -- cgit v1.2.3