source: trunk/debathena/debathena/xsession/debian/xsession.bash @ 23447

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
9initdir=/usr/lib/init
10
11source_if_exists() {
12  [ -r "$1" ] && . "$1"
13}
14
15echo_if_verbose() {
16  [ t = "$verbose_login" ] && echo "$@"
17}
18
19export XSESSION=$$
20
21source_if_exists /etc/profile
22source_if_exists /etc/bashrc
23source_if_exists /etc/bash.bashrc
24if [ -r "$HOME/.bashrc" ]; then
25  . "$HOME/.bashrc"
26else
27  source_if_exists "$initdir/bashrc"
28fi
29
30# Start default initial xterm window.  To skip this, put the command
31# "skip_initial_xterm=t" in your ~/.bash_environment file.
32
33if [ "${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 &)
36fi
37
38if [ "${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
48fi
49
50if [ "${skip_lert+set}" != set ]; then
51  ($initdir/displaylert &)
52fi
53
54if [ -r "$HOME/.startup.X" ]; then
55  ( . "$HOME/.startup.X" &)
56fi
57
58# Proceed with the session command, which has been passed as arguments.
59exec "$@"
Note: See TracBrowser for help on using the repository browser.