Bug#571607: xdm: Please provide a Xreset hook using a common framework
Package: xdm
Version: 1:1.1.8-5
Tags: patch
User: debian-edu@lists.debian.org
UserTags: debian-edu
In btw report #230422, I outline the need for a hook into the Xreset
phase of the display manager. Please implement support for it in xdm,
to make it possible to run scripts when users log out from a xdm
session.
This patch implement it, by looking for a script /etc/X11/Xreset and
running it if it exist. It will hopefully be provided by x11-common
when #230422 is fixed. This bug should be blocked by bug #230422.
diff -ur xdm-1.1.8/debian/local/Xreset xdm-1.1.8-pere/debian/local/Xreset
--- xdm-1.1.8/debian/local/Xreset 2010-02-26 13:24:27.000000000 +0100
+++ xdm-1.1.8-pere/debian/local/Xreset 2010-02-26 13:26:39.000000000 +0100
@@ -6,6 +6,11 @@
PATH="$PATH:/usr/bin/X11"
+# Use common Xreset framework if it exist
+if [ -x /etc/X11/Xreset ] ; then
+ /etc/X11/Xreset
+fi
+
# Remove the utmp entry for the session.
if grep -qs '^use-sessreg' /etc/X11/xdm/xdm.options \
&& which sessreg >/dev/null 2>&1; then
Happy hacking,
--
Petter Reinholdtsen
Reply to: