Kデスクトップ環境

3.2. Supporting multiple window managers

The main dialogue box for KDM includes a "session type" drop-down box, which allows you to select a window manager to use for your session. This chapter describes the changes that you must make to your configuration files in order to support this feature.

The options that appear in the "session type" drop-down box are configured by entries in the KDM section of kdmrc.

When you log in using KDM, the shell script Xsession is executed. The session type that you select is passed as a command-line argument. (Xsession can be found in /etc/X11/xdm/ for Redhat and Mandrake, and in /usr/X11R6/lib/X11/xdm/ for S.u.S.E.). Whilst debugging, you might find it helpful to add this line to Xsession:

 echo "$0 || $1 || $2" > $HOME/.Xsession_args 

How you proceed now depends upon how your system usually starts up window managers. Here are two different approaches, with examples of the changes that you must make: