source: trunk/debathena/debathena/xsession/debian/98debathena-xsession @ 24439

Revision 24439, 626 bytes checked in by jhamrick, 14 years ago (diff)
In xsession: * Make sure debathena-xsession is installed before executing any of the scripts in /etc/X11/Xsession.d (Trac: #348)
RevLine 
[23027]1# This file is sourced by Xsession(5), not executed.
2
3# Wrap the session startup if all of the following are true:
4# - This is a default session
5# - This is an AFS homedir
6# - The user has a standard Athena shell
7# - The user does not have an xsession script
[24439]8if [ "$(dpkg-query -W -f '${Status}' debathena-xsession 2>/dev/null)" = "install ok installed" ] && \
9     [ afs = "$DEBATHENA_HOME_TYPE" -a ! -e "$USERXSESSION" \
[23181]10     -a ! -e "$ALTUSERXSESSION" ]; then
[23027]11  case $SHELL in
12  */bash)
13    STARTUP="/usr/lib/init/xsession.bash $STARTUP"
14    ;;
15  */tcsh)
16    STARTUP="/usr/lib/init/xsession.tcsh $STARTUP"
17    ;;
18  esac
19fi
Note: See TracBrowser for help on using the repository browser.