#! /bin/sh # Xsetup - run as root before the login dialog appears #xconsole -geometry 480x130-0-0 -notify -verbose -fn fixed -exitOnFail -file /dev/xconsole & SESSIONDIR="_PREFIX_/share/config/kdm/sessions" session_to_desktop_entry() { SESSION=$1 SESSIONFILE="/etc/X11/Sessions/${SESSION}" if [ ! -d ${SESSIONDIR} ]; then echo "cannot create ${SESSION}.desktop:" echo "directory ${SESSIONDIR} does not exist." return; fi if [ ! -e ${SESSIONDIR}/${SESSION}.desktop ]; then cat > "${SESSIONDIR}/${SESSION}.desktop" <