I'm not too familiar with debian, and our servers
(my only debian experience) are all headless ...
I'd suggest going with the lilo-approach, though,
because wasting precious 3 MB of RAM on KDM
just for the chooser menu is a fat waste ;)
If it exists you're half-way there :}
As for the lilo and variable stuff... all you need to do is
to duplicate your working lilo-kernel entry, add
label = flux
label = KDE
Run lilo ...
add something like
if [ "$USE_WM" == "KDE" ]; then
su -c "cp ~/.xsession.kde ~/.xsession <username>
su -c "cp ~/.xsession.flux ~/.xsession <username>
Obviously you'll need two .xsession files in your
users home, which will then be copied around
Of course that only makes sense if your user is
the only one who wants to use this feature.