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

Revision 23448, 1.3 KB checked in by broder, 16 years ago (diff)
Punt support for verbose_login in xsession.bash, since it's not used anywhere else.
  • 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
15export XSESSION=$$
16
17source_if_exists /etc/profile
18source_if_exists /etc/bashrc
19source_if_exists /etc/bash.bashrc
20if [ -r "$HOME/.bashrc" ]; then
21  . "$HOME/.bashrc"
22else
23  source_if_exists "$initdir/bashrc"
24fi
25
26# Start default initial xterm window.  To skip this, put the command
27# "skip_initial_xterm=t" in your ~/.bash_environment file.
28
29if [ "${skip_initial_xterm+set}" != set ]; then
30  (gnome-terminal --geometry=80x40-0-0 >/dev/null 2>&1 &)
31fi
32
33if [ "${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
43fi
44
45if [ "${skip_lert+set}" != set ]; then
46  ($initdir/displaylert &)
47fi
48
49if [ -r "$HOME/.startup.X" ]; then
50  ( . "$HOME/.startup.X" &)
51fi
52
53# Proceed with the session command, which has been passed as arguments.
54exec "$@"
Note: See TracBrowser for help on using the repository browser.