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

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 *
RevLine 
[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
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
[23447]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
[23475]30  export ATHENA_INITIAL_X_TERMINAL=
[23447]31fi
32
[23027]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
[23852]49if [ -r "$HOME/.startup.X" ] && [ "${NOCALLS+set}" != set ]; then
[23027]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.