summaryrefslogtreecommitdiff
path: root/mate-session/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-session/main.c')
-rw-r--r--mate-session/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mate-session/main.c b/mate-session/main.c
index f2831a9..b57be06 100644
--- a/mate-session/main.c
+++ b/mate-session/main.c
@@ -581,6 +581,7 @@ int main(int argc, char** argv)
* was specified on the command line.
*/
display_str = gdk_display_get_name (gdk_display_get_default());
+ gsm_util_setenv("DISPLAY", display_str);
/* Some third-party programs rely on MATE_DESKTOP_SESSION_ID to
* detect if MATE is running. We keep this for compatibility reasons.