SCIENTIFIC-LINUX-USERS Archives

March 2007

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jon Peatfield <[log in to unmask]>
Reply To:
Jon Peatfield <[log in to unmask]>
Date:
Thu, 29 Mar 2007 21:46:44 +0100
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (42 lines)
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

ATOM RSS1 RSS2