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

Revision 24976, 611 bytes checked in by jdreed, 13 years ago (diff)
In xsession: * Don't use dpkg-query because it slows logins down; instead ship actual scripts in /usr/share and source them (Trac #778)
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
[24976]8
9if [ -x /usr/lib/init/xsession.bash ] && \
10   [ -x /usr/lib/init/xsession.tcsh ] && \
[24439]11     [ afs = "$DEBATHENA_HOME_TYPE" -a ! -e "$USERXSESSION" \
[23181]12     -a ! -e "$ALTUSERXSESSION" ]; then
[23027]13  case $SHELL in
14  */bash)
15    STARTUP="/usr/lib/init/xsession.bash $STARTUP"
16    ;;
17  */tcsh)
18    STARTUP="/usr/lib/init/xsession.tcsh $STARTUP"
19    ;;
20  esac
21fi
Note: See TracBrowser for help on using the repository browser.