mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-11 21:48:50 +01:00
agent: Unset INSIDE_EMACS on gpg-agent startup
* agent/gpg-agent.c (main): Unset INSIDE_EMACS envvar. -- The variable is set only temporarily when gpg is called from Emacs, keeping it during the session makes no sense. Signed-off-by: Daiki Ueno <ueno@gnu.org>
This commit is contained in:
parent
30a6720a99
commit
f1490a3a0e
@ -1183,6 +1183,11 @@ main (int argc, char **argv )
|
|||||||
gnupg_unsetenv ("DISPLAY");
|
gnupg_unsetenv ("DISPLAY");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Remove the INSIDE_EMACS variable so that a pinentry does not
|
||||||
|
always try to interact with Emacs. The variable is set when
|
||||||
|
a client requested this using an OPTION command. */
|
||||||
|
gnupg_unsetenv ("INSIDE_EMACS");
|
||||||
|
|
||||||
/* Create the sockets. */
|
/* Create the sockets. */
|
||||||
socket_name = create_socket_name (GPG_AGENT_SOCK_NAME, 1);
|
socket_name = create_socket_name (GPG_AGENT_SOCK_NAME, 1);
|
||||||
fd = create_server_socket (socket_name, 1, 0,
|
fd = create_server_socket (socket_name, 1, 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user