Revision 23853,
1.4 KB
checked in by broder, 15 years ago
(diff) |
Only delete the .dmrc file if it's set to our nocalls session.
Also add some extra parentheses to xsession.tcsh, just in case they're
needed.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/usr/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_initial_xterm) then |
---|
25 | setenv ATHENA_INITIAL_X_TERMINAL |
---|
26 | endif |
---|
27 | |
---|
28 | if (! $?skip_x_startup) then |
---|
29 | if (! $?ZEPHYR_CLIENT) setenv ZEPHYR_CLIENT zwgc |
---|
30 | $ZEPHYR_CLIENT |
---|
31 | ($initdir/displaymotd &) |
---|
32 | if (! $?skip_quotawarn) then |
---|
33 | ($initdir/quotawarn &) # Display warning dialogs if near quota |
---|
34 | endif |
---|
35 | if (! $?skip_authwatch) then |
---|
36 | (authwatch &) |
---|
37 | endif |
---|
38 | endif |
---|
39 | |
---|
40 | if (! $?skip_lert) then |
---|
41 | ($initdir/displaylert &) |
---|
42 | endif |
---|
43 | |
---|
44 | if ((-r ~/.startup.X) && (! $?NOCALLS)) then |
---|
45 | (source ~/.startup.X &) |
---|
46 | endif |
---|
47 | |
---|
48 | # If we got this far, then there were no errors that the user /really/ |
---|
49 | # needed to see, so get rid of the ugly xterm |
---|
50 | if ( "$DEBATHENA_HOME_TYPE" == "afs" && $?XCONSOLE ) then |
---|
51 | kill $XCONSOLE |
---|
52 | unsetenv XCONSOLE |
---|
53 | endif |
---|
54 | |
---|
55 | # Proceed with the session command, which has been passed as arguments. |
---|
56 | exec $argv:q |
---|
Note: See
TracBrowser
for help on using the repository browser.