LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-04-2005, 05:13 AM   #1
Tom Lin
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Rep: Reputation: 0
enlightenment and GDM


hey all,

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:

Code:
#!/bin/bash
# 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
    errfile="$HOME/.xsession-errors"
    if cp /dev/null "$errfile" 2> /dev/null ; then
        chmod 600 "$errfile"
        exec > "$errfile" 2>&1
    else
        errfile=$(mktemp -q /tmp/xses-$USER.XXXXXX)
        if [ $? -eq 0 ]; then
            exec > "$errfile" 2>&1
        fi
    fi
fi

if ! printenv PATH | grep -q /usr/X11R6/bin
then
        PATH="${PATH}":/usr/X11R6/bin
fi

# backward compatibility with old switchdesk directory
if [ -d /usr/share/switchdesk ] ; then
    SWITCHDESKPATH=/usr/share/switchdesk
else
    SWITCHDESKPATH=/usr/share/apps/switchdesk
fi

# Mandatorily source xinitrc-common, which is common code shared between the
# Xsession and xinitrc scripts which has been factored out to avoid duplication
. /etc/X11/xinit/xinitrc-common

# now, we see if xdm/gdm/kdm has asked for a specific environment
case $# in
1)
    if [ -x "$SWITCHDESKPATH/Xclients.$1" ]; then
       exec -l $SHELL -c "$SWITCHDESKPATH/Xclients.$1";
    fi;

    case "$1" in
    failsafe)
       exec -l $SHELL -c "xterm -geometry 80x24-0-0"
       ;;
    gnome)
       exec -l $SHELL -c "$DBUS_LAUNCH gnome-session"
       ;;
    kde|kde1|kde2)
       exec -l $SHELL -c "$DBUS_LAUNCH $SWITCHDESKPATH/Xclients.kde"
       ;;
    twm)
        # 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"
       fi
       ;;
    esac
esac

# 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"
else
    # should never get here; failsafe fallback
    exec -l $SHELL -c "xsm"
fi
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.
 
Old 08-05-2005, 10:53 PM   #2
andy753421
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 65

Rep: Reputation: 15
After you start up gdm it should give you an option to pick the 'session' just click on enlightenment and then log in.
If it doesnt give enlightenment as a choice you can fix that by adding a session file to somewhere on you're computer. That somewhere can be found by looking in /etc/X11/gdm/gdm.conf under the SessionDesktopDir variable. (this variabnle works like the PATH variable, just put the enlightenment session file in one of the folders given in the SessionDesktopDir variable. The enlighenment session file should have came with enlightenment (check around in the source) if not here's a sample one from /etc/X11/dm/Sessions/enlightenment.desktop on my computer
1 [Desktop Entry]
2 Encoding=UTF-8
3 Name=Enlightenment
4 Comment=This session starts the Enlightenment window manager
5 Exec=starte16
6 Icon=
7 Type=Application
 
Old 08-06-2005, 05:53 AM   #3
Tom Lin
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks.. i'll give a shot and see how it works out. Appreciate the help!

-Tom
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is /etc/x11/gdm/gdm.conf ? Floreen Linux - Newbie 2 04-30-2007 01:22 PM
Enlightenment 17 and GDM in Mdk 10.0? arrow17 Mandriva 0 01-16-2005 12:01 AM
gdm overwrites /etc/gdm/Session/fluxbox _flaab_ Mandriva 0 12-21-2003 11:58 AM
Enlightenment TravisB Linux - General 10 05-23-2002 12:37 PM
Enlightenment C-Lo Linux - Software 2 05-19-2002 08:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration