On Thu, 29 Mar 2007, Francois Colonna wrote:

Hello

I have installed fluxbox.
I do not known how to make it replace Gnome or Kde when starting an
Xsession.
Can somebody help ?

Add a .desktop file into /usr/share/xsessions/ that refers to a script which gets run as the 'session', we add one in /etc/X11/gdm/Sessions/ but then we also modify the main /etc/X11/xdm/Xsession script to call our session stuff directly -- to avoid that you can add a suitable script in /usr/share/apps/switchdesk/Xclients.session-name see the Xsession script for details:

...
  # 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;
...

In case anyomne wonders why we don't (currently) simply use this, we don't because unlike all the 'standard' sessions, that won't get run in the right environment. e.g. on SL4 the gnome session is run using:

...
    gnome)
       exec -l $SHELL -c "$SSH_AGENT $DBUS_LAUNCH gnome-session"
       ;;
...

and similarly for kde etc. Obviously we want our extra sessions to be run in a similar way too under dbus under ssh-agent. In previous versions it was just ssh-agent we cared about, I don't claim to understand dbus but I guess it must be important for something...

 -- Jon

Reply via email to