Revision 23447,
1.4 KB
checked in by broder, 16 years ago
(diff) |
Bring back initial xterm code from Athena 9.
|
-
Property svn:executable set to
*
|
Line | |
---|
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 | echo_if_verbose() { |
---|
16 | [ t = "$verbose_login" ] && echo "$@" |
---|
17 | } |
---|
18 | |
---|
19 | export XSESSION=$$ |
---|
20 | |
---|
21 | source_if_exists /etc/profile |
---|
22 | source_if_exists /etc/bashrc |
---|
23 | source_if_exists /etc/bash.bashrc |
---|
24 | if [ -r "$HOME/.bashrc" ]; then |
---|
25 | . "$HOME/.bashrc" |
---|
26 | else |
---|
27 | source_if_exists "$initdir/bashrc" |
---|
28 | fi |
---|
29 | |
---|
30 | # Start default initial xterm window. To skip this, put the command |
---|
31 | # "skip_initial_xterm=t" in your ~/.bash_environment file. |
---|
32 | |
---|
33 | if [ "${skip_initial_xterm+set}" != set ]; then |
---|
34 | echo_if_verbose "Creating initial xterm window..." |
---|
35 | (gnome-terminal --geometry=80x40-0-0 >/dev/null 2>&1 &) |
---|
36 | fi |
---|
37 | |
---|
38 | if [ "${skip_x_startup+set}" != set ]; then |
---|
39 | : ${ZEPHYR_CLIENT=zwgc} |
---|
40 | $ZEPHYR_CLIENT |
---|
41 | ($initdir/displaymotd &) |
---|
42 | if [ "${skip_quotawarn+set}" != set ]; then |
---|
43 | ($initdir/quotawarn &) # Display warning dialogs if near quota |
---|
44 | fi |
---|
45 | if [ "${skip_authwatch+set}" != set ]; then |
---|
46 | (authwatch &) |
---|
47 | fi |
---|
48 | fi |
---|
49 | |
---|
50 | if [ "${skip_lert+set}" != set ]; then |
---|
51 | ($initdir/displaylert &) |
---|
52 | fi |
---|
53 | |
---|
54 | if [ -r "$HOME/.startup.X" ]; then |
---|
55 | ( . "$HOME/.startup.X" &) |
---|
56 | fi |
---|
57 | |
---|
58 | # Proceed with the session command, which has been passed as arguments. |
---|
59 | exec "$@" |
---|
Note: See
TracBrowser
for help on using the repository browser.