#!/bin/sh # This is the $HOME/.xsession file for the kiosk "guest" user. # Created by jwz, 24-May-2000. cd # set some important environment variables . /usr/local/sbin/kiosk-env # get that awful crosshatch off there as soon as possible xsetroot -solid "#239EC4" # put up our "loading, please wait" background image /usr/bin/X11/xsetbg /usr/local/etc/images/loading.gif # turn off caps-lock, and make sure both BS and DEL exist (dunno why this # seems not to be the default...) # xmodmap -e 'clear Lock' \ -e 'keycode 0x42 = Control_L' \ -e 'add Control = Control_L' \ -e 'keycode 0x16 = BackSpace' \ -e 'keycode 0x6B = Delete' # gnome-session eats my ass #exec gnome-session /usr/bin/gnome-settings-daemon & sleep 1 /usr/bin/gnome-name-service & sleep 4 ( /usr/bin/gnome-panel & /usr/bin/firefox & # wait a while for things to settle down: # if ( grep Athlon /proc/cpuinfo >/dev/null ) ; then # 5 secs seems about right for Red Hat 7.2 and Gnome on the # AMD Athlon boxes as of Dec 2002. sleep 5 elif ( grep AuthenticAMD /proc/cpuinfo >/dev/null ) ; then # 6 secs seems about right for Red Hat 7.2 and Gnome on the # AMD Duron boxes as of May 2003. sleep 6 else # 20 secs seems about right for Red Hat 7.2 and Gnome on the # Cyrix boxes as of Dec 2002. # 40 secs with Red Hat 9 and Gnome 2, Apr 2004. sleep 40 fi /usr/X11R6/bin/xscreensaver -no-splash & # things should be loaded by now; replace the "please wait" background image. # /usr/bin/X11/xsetbg /usr/share/pixmaps/backgrounds/Propaganda/Vol6/7c.jpg /usr/bin/X11/xsetbg /usr/local/etc/images/kioskbg.jpg ) & #exec /usr/bin/sawfish exec /usr/bin/metacity