What is the right way of starting session?




     What is the proper way of starting GNOME?


Well, that probably should be in the FAQ or, at least, in some readme
file.

If I understand it right GNOME has sesion manager and it is
gnome-session. Supposedly, there is a way to tell session manager which
windows manager to run (just as it runs other programs). I though one
can start gnome-session without windows manager and after logout
gnome-sesion would remember that it should run you favorite windows
manager. That does not work. I am either completely clue-less, or
session manager does not work right yet.

That is what I have in my /etc/X11/xdm/Xsession file (I use kdm
instead of xdm, I guess in gdm one would also be able to choose
session):

===============================8<------------------------------
#!/bin/bash -login
# $XConsortium: Xsession /main/10 1995/12/18 18:21:28 gildea $

case $# in
1)
        case $1 in
        failsafe)
                exec xterm -geometry 80x24-0-0
                ;;
        twm)
                exec twm
                ;;
        fvwm)
                exec fvwm
                ;;
        fvwm2)
                exec fvwm2
                ;;
        gnome)
                gnome-session &
                exec fvwm2
                ;;
        kde)
                kaudioserver &
                kwmsound &
                kfm &
                kcontrol -init &
                kbgndwm &
                krootwm &
                kpanel &
                exec kwm
                ;;
        esac
esac

# redirect errors to a file in user's home directory if we can
for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER"
do
        if ( cp /dev/null "$errfile" 2> /dev/null )
        then
                chmod 600 "$errfile"
                exec > "$errfile" 2>&1
                break
        fi
done

# clean up after xbanner
freetemp

startup=$HOME/.xsession
resources=$HOME/.Xresources
===============================8<------------------------------

The gnome related part:
                gnome-session &
                exec fvwm2
Is it correct?

The inconvinience is that when you hit "logout" in panel you still have to
get out of windows manager.

 Sergey



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]