From c672572bd50966187cc823585efed673b66ff942 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 8 Jun 2015 18:58:27 +0200 Subject: Convey envvar INSIDE_EMACS to the pinentry. * common/session-env.c (stdenvnames): Add it. Signed-off-by: Werner Koch --- common/session-env.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common/session-env.c') diff --git a/common/session-env.c b/common/session-env.c index 8f78c10cb..c0500ea0b 100644 --- a/common/session-env.c +++ b/common/session-env.c @@ -56,7 +56,7 @@ struct session_environment_s }; -/* A list of environment vribales we pass from the actual user +/* A list of environment variables we pass from the actual user (e.g. gpgme) down to the pinentry. We do not handle the locale settings because they do not only depend on envvars. */ static struct @@ -74,6 +74,8 @@ static struct modules (eg "scim-bridge"). */ { "QT_IM_MODULE" }, /* Used by Qt to select qt input modules (eg "xim"). */ + { "INSIDE_EMACS" }, /* Set by Emacs before running a + process. */ { "PINENTRY_USER_DATA", "pinentry-user-data"} /* Used for communication with non-standard Pinentries. */ -- cgit v1.2.3