aboutsummaryrefslogtreecommitdiffstats
path: root/common/session-env.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-06-08 16:58:27 +0000
committerWerner Koch <[email protected]>2015-06-08 17:00:42 +0000
commitc672572bd50966187cc823585efed673b66ff942 (patch)
tree718ccc158f10aaef2d598c5841945fdd1f1be4cb /common/session-env.c
parentagent: Add command "getinfo std_env_names". (diff)
downloadgnupg-c672572bd50966187cc823585efed673b66ff942.tar.gz
gnupg-c672572bd50966187cc823585efed673b66ff942.zip
Convey envvar INSIDE_EMACS to the pinentry.
* common/session-env.c (stdenvnames): Add it. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/session-env.c')
-rw-r--r--common/session-env.c4
1 files changed, 3 insertions, 1 deletions
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. */