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 | |
---|
9 | set initdir=/usr/lib/init |
---|
10 | |
---|
11 | setenv XSESSION $$ |
---|
12 | |
---|
13 | if (-r /etc/.login) source /etc/.login |
---|
14 | if (-r /etc/.cshrc) source /etc/.cshrc |
---|
15 | if (-r /etc/csh.login) source /etc/csh.login |
---|
16 | if (-r /etc/csh.cshrc) source /etc/csh.cshrc |
---|
17 | |
---|
18 | if (-r ~/.cshrc) then |
---|
19 | source ~/.cshrc |
---|
20 | else |
---|
21 | if (-r ${initdir}/cshrc) source ${initdir}/cshrc |
---|
22 | endif |
---|
23 | |
---|
24 | if (! $?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 |
---|
34 | endif |
---|
35 | |
---|
36 | if (! $?skip_lert) then |
---|
37 | ($initdir/displaylert &) |
---|
38 | endif |
---|
39 | |
---|
40 | if (-r ~/.startup.X) then |
---|
41 | (source ~/.startup.X &) |
---|
42 | endif |
---|
43 | |
---|
44 | # Proceed with the session command, which has been passed as arguments. |
---|
45 | exec $argv:q |
---|
Note: See
TracBrowser
for help on using the repository browser.