Revision 23852,
1.3 KB
checked in by broder, 15 years ago
(diff) |
In xsession:
* Don't let people set debathena-nocalls as their default session.
* Don't source .startup.X if NOCALLS is set.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[23027] | 1 | #!/bin/bash --norc |
---|
| 2 | |
---|
| 3 | # This is the Athena xsession wrapper for bash users. Its job is to: |
---|
| 4 | # 1. Set the XSESSION environment variable. |
---|
| 5 | # 2. Process the user's dotfiles including .bash_environment. |
---|
| 6 | # 3. Run standard startup programs if the user has not opted out. |
---|
| 7 | # 4. Run the user's .startup.X. |
---|
| 8 | |
---|
| 9 | initdir=/usr/lib/init |
---|
| 10 | |
---|
| 11 | source_if_exists() { |
---|
| 12 | [ -r "$1" ] && . "$1" |
---|
| 13 | } |
---|
| 14 | |
---|
| 15 | export XSESSION=$$ |
---|
| 16 | |
---|
| 17 | source_if_exists /etc/profile |
---|
| 18 | source_if_exists /etc/bashrc |
---|
| 19 | source_if_exists /etc/bash.bashrc |
---|
| 20 | if [ -r "$HOME/.bashrc" ]; then |
---|
| 21 | . "$HOME/.bashrc" |
---|
| 22 | else |
---|
| 23 | source_if_exists "$initdir/bashrc" |
---|
| 24 | fi |
---|
| 25 | |
---|
[23447] | 26 | # Start default initial xterm window. To skip this, put the command |
---|
| 27 | # "skip_initial_xterm=t" in your ~/.bash_environment file. |
---|
| 28 | |
---|
| 29 | if [ "${skip_initial_xterm+set}" != set ]; then |
---|
[23475] | 30 | export ATHENA_INITIAL_X_TERMINAL= |
---|
[23447] | 31 | fi |
---|
| 32 | |
---|
[23027] | 33 | if [ "${skip_x_startup+set}" != set ]; then |
---|
| 34 | : ${ZEPHYR_CLIENT=zwgc} |
---|
| 35 | $ZEPHYR_CLIENT |
---|
| 36 | ($initdir/displaymotd &) |
---|
| 37 | if [ "${skip_quotawarn+set}" != set ]; then |
---|
| 38 | ($initdir/quotawarn &) # Display warning dialogs if near quota |
---|
| 39 | fi |
---|
| 40 | if [ "${skip_authwatch+set}" != set ]; then |
---|
| 41 | (authwatch &) |
---|
| 42 | fi |
---|
| 43 | fi |
---|
| 44 | |
---|
| 45 | if [ "${skip_lert+set}" != set ]; then |
---|
| 46 | ($initdir/displaylert &) |
---|
| 47 | fi |
---|
| 48 | |
---|
[23852] | 49 | if [ -r "$HOME/.startup.X" ] && [ "${NOCALLS+set}" != set ]; then |
---|
[23027] | 50 | ( . "$HOME/.startup.X" &) |
---|
| 51 | fi |
---|
| 52 | |
---|
| 53 | # Proceed with the session command, which has been passed as arguments. |
---|
| 54 | exec "$@" |
---|
Note: See
TracBrowser
for help on using the repository browser.