summaryrefslogtreecommitdiffstats
path: root/system/lxdm/patches/lxdm-0.3.0-set_DESKTOP_SESSION_in_env.diff
diff options
context:
space:
mode:
author Robby Workman <rw@rlworkman.net>2010-10-18 23:05:35 +0100
committer Michiel van Wessem <michiel@slackbuilds.org>2010-10-18 23:05:35 +0100
commitaa8b4727fc2f9b42fb956e8d4bf40ac3845ffa98 (patch)
tree68e4586a505cdfa69c438acdfe3fbbd08717222d /system/lxdm/patches/lxdm-0.3.0-set_DESKTOP_SESSION_in_env.diff
parent109932ba36192cd89fc5138c3973eb3ad75c5792 (diff)
downloadslackbuilds-aa8b4727fc2f9b42fb956e8d4bf40ac3845ffa98.tar.gz
slackbuilds-aa8b4727fc2f9b42fb956e8d4bf40ac3845ffa98.tar.xz
system/lxdm: Updated for version 0.3.0.
Signed-off-by: Michiel van Wessem <michiel@slackbuilds.org>
Diffstat (limited to 'system/lxdm/patches/lxdm-0.3.0-set_DESKTOP_SESSION_in_env.diff')
-rw-r--r--system/lxdm/patches/lxdm-0.3.0-set_DESKTOP_SESSION_in_env.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/lxdm/patches/lxdm-0.3.0-set_DESKTOP_SESSION_in_env.diff b/system/lxdm/patches/lxdm-0.3.0-set_DESKTOP_SESSION_in_env.diff
new file mode 100644
index 0000000000..4648db02e3
--- /dev/null
+++ b/system/lxdm/patches/lxdm-0.3.0-set_DESKTOP_SESSION_in_env.diff
@@ -0,0 +1,14 @@
+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;