slackbuilds_ponce/system/lxdm/patches/lxdm-0.3.0-set_DESKTOP_SESSION_in_env.diff
Robby Workman aa8b4727fc system/lxdm: Updated for version 0.3.0.
Signed-off-by: Michiel van Wessem <michiel@slackbuilds.org>
2010-10-18 23:05:35 +01:00

14 lines
591 B
Diff

diff -Nur lxdm-0.3.0.orig//src/lxdm.c lxdm-0.3.0/src/lxdm.c
--- lxdm-0.3.0.orig//src/lxdm.c 2010-09-24 10:43:49.000000000 -0500
+++ lxdm-0.3.0/src/lxdm.c 2010-10-10 23:13:33.592124056 -0500
@@ -1359,6 +1359,10 @@
"is-local",&is_local,
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);
}
#endif
char** env, *path;