LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   SuSE Session Type (https://www.linuxquestions.org/questions/linux-distributions-5/suse-session-type-23058/)

rivang 06-10-2002 12:00 PM

SuSE Session Type
 
On the SuSE login screen... what do you have to do to add additional session types?

The current session types listed are:

kde
windowmaker
fvwm2
gnome
mwm
twm
failsafe
I would like to give fluxbox a test and xfce.

Thanks...

buzlink 06-10-2002 02:08 PM

I think you just install the other window managers and they add them self to the list.

If I'm totally wrong you probably have to edit some config file.
I'm not sure, and good luck trying to get a response on here.

rivang 06-10-2002 02:49 PM

With a little more digging... I found the xinitrc.config which is located in the /etc/skel/.xinitrc or $user/home/xinitrc.

Note the call to /usr/X11R6/bin/wmlist... wmlist looks like a routine that detects the windows managers that are installed.

So how could you add fluxbox to this? I have it installed but it wasn't detected as an available winman.

#!/bin/bash
#
# Sample .xinitrc for SuSE Linux
# This script is called from 'startx' when you start an X session
#

#
# In case everything goes wrong, we at least fall back to a plain xterm
#
failsafe="xterm -ls -T Failsave -geometry 80x24-0-0"
trap "exec $failsafe" EXIT SIGHUP SIGINT SIGPIPE SIGTERM SIGIO

#
# Some bash (1 and 2) settings to avoid trouble on a
# failed program call.
#
test -n "$BASH" && set +o posix
no_exit_on_failed_exec=1
type shopt > /dev/null 2>&1 && shopt -s execfail
set +e > /dev/null 2>&1

#
# This should be the default
#
export TERM=xterm

#
# choose a window manager
#
if test -n "$WINDOWMANAGER" ; then
WINDOWMANAGER=`type -p $WINDOWMANAGER`
fi
if test -z "$WINDOWMANAGER" ; then
if test -x /usr/X11R6/bin/kde ; then
WINDOWMANAGER=/usr/X11R6/bin/kde
elif test -x /usr/X11R6/bin/startkde ; then
WINDOWMANAGER=/usr/X11R6/bin/startkde
elif test -x /usr/X11R6/bin/fvwm2 ; then
WINDOWMANAGER=/usr/X11R6/bin/fvwm2
elif test -x /usr/X11R6/bin/wmlist ; then
for i in `/usr/X11R6/bin/wmlist` ; do
WINDOWMANAGER=`type -p $i`
test -n "$WINDOWMANAGER" && break
done
elif test -x /usr/X11R6/bin/twm ; then
WINDOWMANAGER=/usr/X11R6/bin/twm
fi
fi

if test -z "$WINDOWMANAGER" ; then
echo "Error: Unable to find a window manager. Please make sure you installed one!"
echo "Exiting..."
xmessage -timeout 10 -default okay -center -file - <<-EOF
Error: Unable to find a window manager. Please make sure you installed one!
Exiting...
EOF
exit 1
fi

#
# Load system and users resources if not already done
# (XSESSION_IS_UP set by xdm in $XLIBDIR/xdm/Xsession)
#
if test "$XSESSION_IS_UP" != "yes" ; then
XLIBDIR=/usr/X11R6/lib/X11
test -r $XLIBDIR/Xmodmap && xmodmap $XLIBDIR/Xmodmap
test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap
test -r $XLIBDIR/Xresources && xrdb -load -retain $XLIBDIR/Xresources
test -r $HOME/.Xdefaults && xrdb -I$HOME -merge $HOME/.Xdefaults
test -r $HOME/.Xresources && xrdb -I$HOME -merge $HOME/.Xresources
fi

# Start the XIM server
test -r $HOME/.xim && source $HOME/.xim

#
# Add your own lines here...
#


# day planer deamon
# pland &

#
# finally start the window manager
#
exec $WINDOWMANAGER

# call failsafe
exit 0


Here is the wmlist...

#!/bin/bash
# wmlist
# SuSE wmlist 2001, last updated Jul 18
#
# check for installed window managers
#

WMs="
kde
windowmaker
sawmill
enlightenment
blackbox
DyDe
9wm
afterstep
amiwm
bowman
cdesim
ctwm
dtwm
fvwm1
fvwm2
fvwm95
gnome
icewm
mlvwm
mwm
olvwm
olwm
piewm
qvwm
scwm
wm2
XFce
kde1
twm
xsplash
"

newWM=""
for wm in $WMs ; do
type -p $wm &> /dev/null && newWM="$newWM ${wm##*/}"
done

test -z "$newWM" && exit 1
echo $newWM
exit 0

manaskb 06-10-2002 05:24 PM

I went through this whole excercise once when i tried to install flux box and start it using the kdm. I found a slightly easier way of doing this. I am using kdm and kde3.0.

1. Open kcontrol(Kde Control Center)->System->Login manager . Now open the tab for "Sessions" Here add a session "fluxbox".

2. This depends on where your installed the fluxbox. In my case I had it in /opt/fluxbox. So i created a link to fluxbox in my /usr/X11/bin.

X11/bin> pwd
/usr/X11R6/bin
X11/bin> ls -l fluxbox
lrwxrwxrwx 1 root root 24 May 30 15:51 fluxbox -> /opt/fluxbox/bin/fluxbox

When you try to login the next time , you should be able to see "fluxbox" in the kdm session options along with all other winmanagers.
Thanks,
Manas

manaskb 06-10-2002 05:26 PM

Quote:

Originally posted by manaskb

2. This depends on where your installed the fluxbox. In my case I had it in /opt/fluxbox. So i created a link to fluxbox in my /usr/X11/bin.

This should have been /usr/X11R6/bin.

rivang 06-10-2002 10:00 PM

Thanks... that sounds like a better solution


All times are GMT -5. The time now is 11:57 AM.