Bug#203963: Add support for ~/.Xclients
Package: xfree86-common
Version: 4.2.1-6
On RedHat a non-root user can create a ~/.Xclients script file and its
contents is executed when the user logs in via xdm. This is quite
practical for starting a couple of applications when logging into X. For
instance I use it to start an xterm, xmms and gkrellm. I also use this
functionality to run xset and modify some of the X server settings.
However Debian does not suppor any equivalent scheme. I believe the
standard response is that the user should write his own .xsession file
which means each user would have to duplicate the functionality of all
the scripts in '/etc/X11/Xsession.d' which would be pretty ugly.
So I propose to add the following script to '/etc/X11/Xsession.d'.
Ideally one would also apply the change I proposed in bug 203942 and
call the new script 98xfree86-common_xclients. This way the xterm I
start in my .Xclients file would inherit the ssh-agent
environment variables.
So here is the script. I wrote it so that support for ~/.Xclients can be
enabled/disabled using /etc/X11/Xsession.options like for the other
features.
--- cut here ---
if grep -qs ^allow-user-xclients "$OPTIONFILE"; then
if [ -e "$HOME/.Xclients" ]; then
if [ -x "$HOME/.Xclients" ]; then
"$HOME/.Xclients"
else
sh "$HOME/.Xclients"
fi
fi
fi
--- cut here ---
--
Francois Gouget fgouget@free.fr http://fgouget.free.fr/
1 + e ^ ( i * pi ) = 0
Reply to: