If you use a reasonably recent version of gdm, it's as easy as creating a new file in /usr/share/xsessions. Look at the other files there for reference, because it really is very easy.
This is just a guess - to try it save it to /usr/share/xsessions/afterstep:
Code:
[Desktop Entry]
Encoding=UTF-8
Name=Afterstep
Comment=This session logs you into Afterstep
Exec=afterstep
TryExec=afterstep
# no icon yet, only the top three are currently used
Icon=
Type=Application
I use an ~/.xsession file and choose the "Custom" session. Here is a very simple .xsession for use with Openbox and fbpanel:
Code:
#!/bin/bash
Esetroot ~/gfx/wallpaper/current &
fbpanel &
xrootconsole -fn *cure* -geometry 140x8+320+718 /var/log/messages &
exec openbox
Håkan