[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#204378: Debian version number (sid[?] vs. woody etc.)



Well this bug is 6 year old, so I don't know if anyone still cares,
anyway I have a simple proposal:
Use xmessage to display the required information.

The attached patch modify the scripts used by xdm in order to do so.
However I don't think it can be integrated as such, mainly because it
uses xmessage, killall and lsb_release without checking if the
corresponding command exist. Also one might want to tweek the look of
the xmessage window using some xresource file.
More information on the used techniques are available from the gentoo
wiki [1].

 1: http://www.gentoo-wiki.info/XDM/Customization

-- 
Julien Viard de Galbert                        <julien@vdg.blogsite.org>
http://silicone.homelinux.org/           <julien@silicone.homelinux.org>
diff -rau orig//etc/X11/xdm/Xsetup new//etc/X11/xdm/Xsetup
--- orig//etc/X11/xdm/Xsetup	2010-11-03 13:42:43.000000000 +0100
+++ new//etc/X11/xdm/Xsetup	2010-11-03 13:44:27.000000000 +0100
@@ -3,3 +3,5 @@
 # This script is run as root before showing login widget.
 
 #xsetroot -solid rgb:8/8/8
+
+xmessage -button '' -geometry +0+0 'xdm - '`lsb_release -ds`&
diff -rau orig//etc/X11/xdm/Xstartup new//etc/X11/xdm/Xstartup
--- orig//etc/X11/xdm/Xstartup	2010-11-03 13:43:23.000000000 +0100
+++ new//etc/X11/xdm/Xstartup	2010-11-03 13:45:10.000000000 +0100
@@ -3,6 +3,9 @@
 # This script is run as root after the user logs in.  If this script exits with
 # a return code other than 0, the user's session will not be started.
 
+#cleanup
+killall xmessage
+
 if [ -e /etc/nologin ]; then
   # always display the nologin message, if possible
   if [ -s /etc/nologin ] && which xmessage > /dev/null 2>&1; then

Reply to: