next up previous
Next: Pre-uninstall Up: Post-install Previous: Other System V init

Modifying the Xsession file

If your distribution does not have a /etc/X11/Xsession.d/ directory, the post-install script will need to add a line to the beginning of /etc/X11/Xsession. This is done by running:
XSESSION_FILE="/etc/X11/Xsession";
if [ "`grep \"$$XSESSION_KEYTOUCHD_LINE\" \"$$XSESSION_FILE\" -m 1 -h`" != "$$XSESSION_KEYTOUCHD_LINE" ]; then
  XSESSION_TMP=`cat "$$XSESSION_FILE"`;
  echo "$$XSESSION_KEYTOUCHD_LINE" > $$XSESSION_FILE;
  echo "$$XSESSION_TMP" >> $$XSESSION_FILE;
fi



Marvin 2005-11-28