Annoying lightdm bug
Ubuntu 11.10 (oneiric ocelot) and newer have stopped using the good old gdm as display manager and switched to lightdm.
This is probably a good thing, except for the fact that it removed the option for a user defined script (like .xsession)
to be run at login. This a a no-go to a Awesome user like myself who likes to have full control of the login environment.
In order to rememedy this you need to create a file in /usr/share/xsessions to reenable user defined scripts:
/usr/share/xsessions/xsession.desktop:
[Desktop Entry]
Encoding=UTF-8
Name=xsession
Comment=Use .xsession file in homedir
TryExec=/etc/X11/Xsession
Exec=/etc/X11/Xsession
After you have created the file. Do a `restart lightdm' and you should have a new option called xsession in
the Window manager menu.