Revision 24439,
626 bytes
checked in by jhamrick, 15 years ago
(diff) |
In xsession:
* Make sure debathena-xsession is installed before executing any of the
scripts in /etc/X11/Xsession.d (Trac: #348)
|
Line | |
---|
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 |
---|
8 | if [ "$(dpkg-query -W -f '${Status}' debathena-xsession 2>/dev/null)" = "install ok installed" ] && \ |
---|
9 | [ afs = "$DEBATHENA_HOME_TYPE" -a ! -e "$USERXSESSION" \ |
---|
10 | -a ! -e "$ALTUSERXSESSION" ]; then |
---|
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 |
---|
19 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.