summaryrefslogtreecommitdiffstats
path: root/system/lxdm/patches/lxdm-set_DESKTOP_SESSION_in_env.diff
blob: 6563354a68aea272ba50e62c8d70efe2f411d54e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff -Naur lxdm-20120419_2ce143c.orig/src/lxdm.c lxdm-20120419_2ce143c/src/lxdm.c
--- lxdm-20120419_2ce143c.orig/src/lxdm.c	2012-04-19 16:31:16.000000000 +0200
+++ lxdm-20120419_2ce143c/src/lxdm.c	2012-04-28 18:17:25.186023147 +0200
@@ -1490,6 +1490,10 @@
 							  NULL))
 		{
 			setenv("XDG_SESSION_COOKIE", ck_connector_get_cookie(s->ckc), 1);
+			/* I really don't like doing this, but since both kdm and gdm
+			   set this in the environment, and our xinitrc scripts depend
+			   on it, here we go with a minor patch... */
+			setenv("DESKTOP_SESSION", session_name, 1);
 		}
 		else
 		{