I have just compiled enlightenment-16.6 on fedora core 3 and would like to set it up to run as the window manager on top of GDM. What are the steps required to configure enlightenment to run on top of GDM? I know that it involves editing /etc/X11/xdm/Xession however I have no experience in bash shell scripting. Here is my Xsession file:
# Copyright (C) 1999 - 2004 Red Hat, Inc. All rights reserved. This
# copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the
# GNU General Public License version 2.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# redirect errors to a file in user's home directory if we can
if [ -z "$GDMSESSION" ]; then
# GDM redirect output itself in a smarter fashion
if cp /dev/null "$errfile" 2> /dev/null ; then
chmod 600 "$errfile"
exec > "$errfile" 2>&1
errfile=$(mktemp -q /tmp/xses-$USER.XXXXXX)
if [ $? -eq 0 ]; then
exec > "$errfile" 2>&1
if ! printenv PATH | grep -q /usr/X11R6/bin
# backward compatibility with old switchdesk directory
if [ -d /usr/share/switchdesk ] ; then
# Mandatorily source xinitrc-common, which is common code shared between the
# Xsession and xinitrc scripts which has been factored out to avoid duplication
# now, we see if xdm/gdm/kdm has asked for a specific environment
case $# in
if [ -x "$SWITCHDESKPATH/Xclients.$1" ]; then
exec -l $SHELL -c "$SWITCHDESKPATH/Xclients.$1";
case "$1" in
exec -l $SHELL -c "xterm -geometry 80x24-0-0"
exec -l $SHELL -c "$DBUS_LAUNCH gnome-session"
exec -l $SHELL -c "$DBUS_LAUNCH $SWITCHDESKPATH/Xclients.kde"
# fall back to twm
exec -l $SHELL -c "$DBUS_LAUNCH $SWITCHDESKPATH/Xclients.twm"
# GDM provies either a command line as the first argument or
# provides 'failsafe', 'default' or 'custom'. KDM will do the
# same at some point
if [ "$1" != "default" -a "$1" != "custom" ]; then
exec -l $SHELL -c "$DBUS_LAUNCH $1"
# otherwise, take default action
if [ -x "$HOME/.xsession" ]; then
exec -l $SHELL -c "$DBUS_LAUNCH $HOME/.xsession"
elif [ -x "$HOME/.Xclients" ]; then
exec -l $SHELL -c "$DBUS_LAUNCH $HOME/.Xclients"
elif [ -x /etc/X11/xinit/Xclients ]; then
exec -l $SHELL -c "$DBUS_LAUNCH /etc/X11/xinit/Xclients"
# should never get here; failsafe fallback
exec -l $SHELL -c "xsm"
how would I edit my Xsession file in order for GDM to load enlightenment as my primary window manager? Any help would be appreciated. Thanks in advance.