source: trunk/debathena/debathena/xsession/debian/xsession.tcsh @ 23027

Revision 23027, 1.1 KB checked in by ghudson, 16 years ago (diff)
Add a debathena-xsession package for graphical session integration.
  • Property svn:executable set to *
Line 
1#!/bin/tcsh -f
2
3# This is the Athena xsession wrapper for tcsh users.  Its job is to:
4# 1. Set the XSESSION environment variable.
5# 2. Process the user's dotfiles including .environment.
6# 3. Run standard startup programs if the user has not opted out.
7# 4. Run the user's .startup.X.
8
9set initdir=/usr/lib/init
10
11setenv XSESSION $$
12
13if (-r /etc/.login) source /etc/.login
14if (-r /etc/.cshrc) source /etc/.cshrc
15if (-r /etc/csh.login) source /etc/csh.login
16if (-r /etc/csh.cshrc) source /etc/csh.cshrc
17
18if (-r ~/.cshrc) then
19  source ~/.cshrc
20else
21  if (-r ${initdir}/cshrc) source ${initdir}/cshrc
22endif
23
24if (! $?skip_x_startup) then
25  if (! $?ZEPHYR_CLIENT) setenv ZEPHYR_CLIENT zwgc
26  $ZEPHYR_CLIENT
27  ($initdir/displaymotd &)
28  if (! $?skip_quotawarn) then
29    ($initdir/quotawarn &)      # Display warning dialogs if near quota
30  endif
31  if (! $?skip_authwatch) then
32    (authwatch &)
33  endif
34endif
35
36if (! $?skip_lert) then
37  ($initdir/displaylert &)
38endif
39
40if (-r ~/.startup.X) then
41  (source ~/.startup.X &)
42endif
43
44# Proceed with the session command, which has been passed as arguments.
45exec $argv:q
Note: See TracBrowser for help on using the repository browser.