summaryrefslogtreecommitdiff
path: root/mate-session/main.c
diff options
context:
space:
mode:
authorBjörn Esser <[email protected]>2017-05-07 12:48:32 +0200
committerraveit65 <[email protected]>2017-05-25 19:36:53 +0200
commit4ed212493393c0e38ab93adcd026e97ac3bceb4f (patch)
treed6c9e8810577b0458a6a30ba392fcd21244cc15c /mate-session/main.c
parent7b1d2e7109caa4ae42a197fdc0450d5796bf3f47 (diff)
downloadmate-session-manager-4ed212493393c0e38ab93adcd026e97ac3bceb4f.tar.bz2
mate-session-manager-4ed212493393c0e38ab93adcd026e97ac3bceb4f.tar.xz
systemd user-session needs to be updated to get all user-defined
enviroment when the session starts. If we get passed an environment variable, send it along to the systemd --user session so things running in that context can pick it up. See: https://bugzilla.gnome.org/show_bug.cgi?id=736660
Diffstat (limited to 'mate-session/main.c')
-rw-r--r--mate-session/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mate-session/main.c b/mate-session/main.c
index da931af..161772d 100644
--- a/mate-session/main.c
+++ b/mate-session/main.c
@@ -622,6 +622,10 @@ int main(int argc, char** argv)
gsm_util_export_activation_environment (NULL);
+#ifdef HAVE_SYSTEMD
+ gsm_util_export_user_environment (NULL);
+#endif
+
mdm_log_init();
/* Allows to enable/disable debug from GSettings only if it is not set from argument */