source: trunk/debathena/debathena/dotfiles/Xsession @ 22913

Revision 22913, 2.0 KB checked in by tabbott, 16 years ago (diff)
In dotfiles: * Merge in quilt patches. These and other changes are summarized below. * Remove platform-specific code for non-Linux architectures. * Remove mksessiondirs and other ATHENA_SESSION_TMPDIr code; this is now handled by pam_mktemp * Run from.debathena and quota.debathena rather than from/quota in case debathena-from-config/debathena-quota-config are not installed * Remove unecessary athena/ from paths, except in prototype files which should remain unchanged for compatability. * Remove ancient extend alias from tcsh dotfiles. * Set ZEPHYR_CLIENT to not run zwgc on dialups; this avoids problems with zephyr in Debian automatically gaining focus. * Remove code for handling temporary home directories, since those can't happen anymore. * Stop setting XDG_DATA_DIRS; this is now controlled by debathena-desktop-config. * Stop setting COREDUMPSIZE; this was an IRIX workaround * Stop setting LD_LIBRARY_PATH to /usr/athena/lib; this breaks building things when /usr/athena is a symlink. * Stop setting XUSERFILESEARCHPATH to a directory that doesn't exist. * Change renew alias to use 'kinit -54' so we no longer require modified Kerberos. * Stop setting MANPATH, since we'd be setting it to the default anyway. * Remove athena_path logic, since athena_path would be PATH. * Only have one copy of the add alias, now that athena_path is gone. * Remove add_flags since it is always empty. * Don't temporarily remove add in cshrc. * Stop setting CDPATH. * Stop changing the default prompt for bash; the Debian default is better. * Stop changing the default prompt for tcsh, but leave the prompt character change, since there's a lot of documentation that uses it. * Stop configuring tcsh to not stat /afs/* when tab-completing; fakestat handles this. * Remove tcsh warning for "bind" alias.
  • Property svn:executable set to *
RevLine 
[13948]1#!/bin/sh
2
3# Top level Xsession file for all users
4#
[22371]5# $Id: Xsession,v 1.8 2005-12-22 14:54:17 rbasch Exp $
[13948]6
7trap "kdestroy; unlog; fsid -u -f $USER; exit 0" 1 2 15
8
[22913]9initlib="/usr/lib/init"
[13948]10defsession=$1
11defsessioncmd="$2"
12
13if [ -f .noignore ]; then
14        defsession=1;
15fi
16
17case $defsession in
[16176]181|4|7)
[13948]19        if [ -f .xsession ]; then
20                session=".xsession"
21        else
22                session="$initlib/xsession"
23        fi
[16176]24        case $defsession in
25        7)
26                session="$session dash"
27                ;;
28        esac
[13948]29        ;;
302)
31        session="$initlib/xsession -nocalls"
32        ;;
333)
34        session="xterm -ls -geometry 80x24+280+220 -display :0.0"
35        ;;
365)
37        session="$defsessioncmd"
38        ;;
39esac
40
41# Set the tty characteristics of the parent (console window)
42# Redirect stdin since some versions of stty use it instead of stdout.
43if [ "${hosttype}" = "decmips" ]; then
44  stty dec 0<&1 2>/dev/null
45else
46  stty sane 0<&1 2>/dev/null
47fi
48
49# Make random Athena modifications to keymap if required.
50
[22913]51test -f /usr/lib/X11/keymaps/AthenaMods && \
52  xmodmap /usr/lib/X11/keymaps/AthenaMods
[13948]53
54# Set X screensaver to noblanking to avoid power saving.
55xset s noblank
56
57# Only attempt using bugme if packs are actually available.
[22913]58if [ -x /usr/bin/bugme ]; then
59        /usr/bin/bugme $session
[13948]60else
61        $session
62fi
63
64status=$?
65if [ $status != 0 ]; then
66                echo ERROR:
67                echo "Xsession returned non-zero status."
68                echo ""
69                echo 'Select the login option to "Ignore your customizations"'
70                echo 'to login and repair your dot files.'
71                kdestroy                        # destroy tickets.
72                sleep 10
73                exit 1
74fi
75
[20517]76# Kill mozilla before destroying tokens so that it removes its lock file.
77$initlib/xkill-mozilla
78
[19040]79# Make gconfd flush settings to disk before destroying credentials.
80gconftool-2 --shutdown
[13948]81
[20488]82# Kill xscreensaver, to keep it from trying to restart when we send
83# it SIGHUP below.
84xscreensaver-command -exit > /dev/null 2>&1
85
[13948]86# Cannot detach homedir here, since this script is executed in the users
87# homedir.
88
89kdestroy                                # destroy tickets.
90cd /tmp
91unlog
92fsid -u -f $USER > /dev/null 2>&1
[19787]93
[13948]94sleep 3                                 # let them see any messages (quickly)
95exit 0
Note: See TracBrowser for help on using the repository browser.