----- Original message from Jon Peatfield on Thu Mar 29 22:46:44 2007 -----
>
> 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
>
Hi,
after installing SL4.4 on a new desktop I found that ssh-agent
did not work as expected with icewm as it does under SL4.1
Your post help me to solve this problem by replacing the
following lines in /etc/X11/xdm/Xsession
#### goubert:{root}:/etc/X11/xdm > diff -ruN Xsession.orig Xsession
--- Xsession.orig 2006-08-11 22:01:34.000000000 +0200
+++ Xsession 2007-04-17 05:45:51.000000000 +0200
@@ -43,7 +43,7 @@
case $# in
1)
if [ -x "$SWITCHDESKPATH/Xclients.$1" ]; then
- exec -l $SHELL -c "$SWITCHDESKPATH/Xclients.$1";
+ exec -l $SHELL -c "$SSH_AGENT $DBUS_LAUNCH
$SWITCHDESKPATH/Xclients.$1";
fi;
case "$1" in
Under 4.1 the call to ssh-agent was done before in
/etc/X11/xinit/xinitrc-common
which is no longer true in 4.4.
--
Best regards,
Robert FRANCHISSEUR
____ Apollo_gist :-)_______________________________________________
| Robert FRANCHISSEUR |
| Laboratoire de Météorologie Dynamique - C.N.R.S. |
| Equipe "R.A.M.S.E.S." - UPMC - Tour 45-55 3ème 315C |
| Boite 99 - 4, place Jussieu F-75252 PARIS CEDEX 05 FRANCE |
| Phone : +33 (0)1 44 27 73 87 fax : +33 (0)1 44 27 62 72 |
| e-mail : robert at lmd . jussieu . fr http://www.lmd.jussieu.fr |
-------------------------------------------------------------------