source: trunk/debathena/debathena/xsession/debian/00debathena-gdm-sucks @ 24861

Revision 24861, 654 bytes checked in by jdreed, 14 years ago (diff)
In xsession: * Add an Athena-specific tty-mode login session that will get you an xterm
Line 
1if [ "$(dpkg-query -W -f '${Status}' debathena-xsession 2>/dev/null)" = "install ok installed" ] && [ "$GDMSESSION" = "001debathena-ttymode" ]; then
2    if [ "$DEBATHENA_HOME_TYPE" = "afs" ]; then
3        QUOTAPCT=$(fs lq $HOME | tail -1 | awk '{print $4}' | sed 's/[^0-9]*//g')
4        if [ $QUOTAPCT -ge 100 ]; then
5            # Otherwise it blocks the session until it times out
6            pkill pulseaudio
7        fi
8    fi
9    if zenity --question --text="This will launch an xterm which will emulate a tty-mode login session.  You can end your session by typing 'logout'.\nContinue?"; then
10        xsetroot -solid grey
11        xterm -ls -geometry 80x24+280+220 -display :0.0
12    fi
13    exit 0
14fi
Note: See TracBrowser for help on using the repository browser.