aboutsummaryrefslogtreecommitdiffstats
path: root/sm/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sm/misc.c')
-rw-r--r--sm/misc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sm/misc.c b/sm/misc.c
index 7da206aba..38994725e 100644
--- a/sm/misc.c
+++ b/sm/misc.c
@@ -76,6 +76,13 @@ setup_pinentry_env (void)
else if ( (lc = setlocale (LC_MESSAGES, "")) )
setenv ("LC_MESSAGES", lc, 1);
#endif
+
+ if (opt.xauthority)
+ setenv ("XAUTHORITY", opt.xauthority, 1);
+
+ if (opt.pinentry_user_data)
+ setenv ("PINENTRY_USER_DATA", opt.pinentry_user_data, 1);
+
#endif /*!HAVE_W32_SYSTEM*/
}