[gentoo-user] SLiM fails to load Fluxbox

2009-04-16 Thread Liviu Andronic
Dear all,
I'm using x11-misc/slim as a login manager, and I have troubles with
loading any DE other than Xfce. I've followed the wiki entry [1], but
I must still be doing something wrong: it fails to load Fluxbox
whether I select Fluxbox or Xfce with F1.
It's actually quite funny: selecting Fluxbox I get Xfce loaded on top
of Fluxbox; in this case, when I log out of Xfce I fall back onto
Fluxbox. I suspect that an xfce entry is left in some init script,
but i cannot figure out where it would be.
Thanks,
Liviu

[1] http://en.gentoo-wiki.com/wiki/SLiM


[I] x11-misc/slim
 Installed versions:  1.3.1-r5(16:01:49 08/04/09)(branding pam screenshot)
[I] x11-wm/fluxbox
 Installed versions:  1.0.0-r2(15:08:30 12/10/08)(gnome imlib nls
slit toolbar truetype -kde -vim-syntax -xinerama)

li...@localhost ~ $ rc-status default | grep -i xdm
 xdm[ started  ]
li...@localhost ~ $ cat /etc/conf.d/xdm | grep -i slim
DISPLAYMANAGER=slim
li...@localhost ~ $ cat .xinitrc
#SLiM session call
DEFAULT_SESSION=dbus-launch startxfce4

case $1 in
fluxbox)
exec startfluxbox
;;
*)
exec $DEFAULT_SESSION
;;
esac

# load local modmap
test -r $HOME/.Xmodmap  xmodmap $HOME/.Xmodmap

li...@localhost ~ $ cat /etc/slim.conf | grep -i login_cmd
login_cmd   exec /bin/bash -login ~/.xinitrc %session
li...@localhost ~ $ cat /etc/slim.conf | grep -i sessions
sessionsxfce,fluxbox
li...@localhost ~ $ cat /etc/slim.conf | grep -i sessionst
#sessionstart_cmd   /usr/bin/sessreg -a -l :0.0 %user
#sessionstop_cmd /usr/bin/sessreg -d -l :0.0 %user



Re: [gentoo-user] SLiM fails to load Fluxbox

2009-04-16 Thread Marc Joliet
Am Thu, 16 Apr 2009 09:28:26 +0200
schrieb Liviu Andronic landronim...@gmail.com:

 Dear all,
 I'm using x11-misc/slim as a login manager, and I have troubles with
 loading any DE other than Xfce. I've followed the wiki entry [1], but
 I must still be doing something wrong: it fails to load Fluxbox
 whether I select Fluxbox or Xfce with F1.
 It's actually quite funny: selecting Fluxbox I get Xfce loaded on top
 of Fluxbox; in this case, when I log out of Xfce I fall back onto
 Fluxbox. I suspect that an xfce entry is left in some init script,
 but i cannot figure out where it would be.
 Thanks,
 Liviu
 
 [1] http://en.gentoo-wiki.com/wiki/SLiM
 
 
 [I] x11-misc/slim
  Installed versions:  1.3.1-r5(16:01:49 08/04/09)(branding pam screenshot)
 [I] x11-wm/fluxbox
  Installed versions:  1.0.0-r2(15:08:30 12/10/08)(gnome imlib nls
 slit toolbar truetype -kde -vim-syntax -xinerama)
 
 li...@localhost ~ $ rc-status default | grep -i xdm
  xdm[ started 
  ]
 li...@localhost ~ $ cat /etc/conf.d/xdm | grep -i slim
 DISPLAYMANAGER=slim
 li...@localhost ~ $ cat .xinitrc
 #SLiM session call
 DEFAULT_SESSION=dbus-launch startxfce4
  ^^
This sets DEFAULT_SESSION to dbus-launch and then executes startxfce4. That
would explain why you have fluxbox and xfce both started simultaneously. You
need to put the whole thing in quotes, like so:

  DEFAULT_SESSION=dbus-launch startxfce4

 
 case $1 in
 fluxbox)
   exec startfluxbox
   ;;
 *)
   exec $DEFAULT_SESSION
   ;;
 esac
 
 # load local modmap
 test -r $HOME/.Xmodmap  xmodmap $HOME/.Xmodmap
 
 li...@localhost ~ $ cat /etc/slim.conf | grep -i login_cmd
 login_cmd   exec /bin/bash -login ~/.xinitrc %session
 li...@localhost ~ $ cat /etc/slim.conf | grep -i sessions
 sessionsxfce,fluxbox
 li...@localhost ~ $ cat /etc/slim.conf | grep -i sessionst
 #sessionstart_cmd /usr/bin/sessreg -a -l :0.0 %user
 #sessionstop_cmd /usr/bin/sessreg -d -l :0.0 %user

HTH
-- 
Marc Joliet
--
Lt. Frank Drebin: It's true what they say: cops and women don't mix. Like
eating a spoonful of Drāno; sure, it'll clean you out, but it'll leave you
hollow inside.


signature.asc
Description: PGP signature


Re: [gentoo-user] SLiM fails to load Fluxbox

2009-04-16 Thread Liviu Andronic
On Thu, Apr 16, 2009 at 5:56 PM, Marc Joliet mar...@gmx.de wrote:
 li...@localhost ~ $ cat .xinitrc
 #SLiM session call
 DEFAULT_SESSION=dbus-launch startxfce4
                  ^^
 This sets DEFAULT_SESSION to dbus-launch and then executes startxfce4. That
 would explain why you have fluxbox and xfce both started simultaneously. You
 need to put the whole thing in quotes, like so:

  DEFAULT_SESSION=dbus-launch startxfce4

That's news to me. Now it works fine. I also put the info in the wiki article.
Thanks.
Liviu